aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-04-30 05:51:37 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-04-30 05:51:37 +0000
commit15f9a93c25ac3ff26dfd1b85e3f746ef1efe0254 (patch)
treedf0998d4d8506cd887120a048bd69ce54a5be6ab /tests
parente99287734ba96d8c37a94d079b1b0779c29a8926 (diff)
include the full size of the sent response in the log
Diffstat (limited to 'tests')
-rw-r--r--tests/server/sws.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c
index ebfa19759..b79b40c3e 100644
--- a/tests/server/sws.c
+++ b/tests/server/sws.c
@@ -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);