]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
include the full size of the sent response in the log
authorDaniel Stenberg <daniel@haxx.se>
Fri, 30 Apr 2004 05:51:37 +0000 (05:51 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 30 Apr 2004 05:51:37 +0000 (05:51 +0000)
tests/server/sws.c

index ebfa1975994ee7c829a631ee29ea6351948d0c1d..b79b40c3ee58a8604a73b78b96a004b5816ed4ae 100644 (file)
@@ -519,6 +519,7 @@ static int send_doc(int sock, struct httprequest *req)
   size_t cmdsize=0;
   FILE *dump;
   int persistant = TRUE;
+  size_t responsesize;
 
   static char weare[256];
 
@@ -613,6 +614,8 @@ static int send_doc(int sock, struct httprequest *req)
   else
     prevbounce = FALSE;
 
+
+  responsesize = count;
   do {
     written = swrite(sock, buffer, count);
     if (written < 0) {
@@ -628,7 +631,7 @@ static int send_doc(int sock, struct httprequest *req)
 
   fclose(dump);
 
-  logmsg("Response sent!");
+  logmsg("Response sent (%d bytes)!", responsesize);
 
   if(ptr)
     free(ptr);