aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-06-21 14:00:11 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-06-21 14:00:11 +0000
commit67341c4cbe16f333877a366dcf1924e063c26013 (patch)
treeb3501ba12311c54d75d99c7932de8681170c5ca9 /tests
parentf8188ddfee29826487eb4d2008596584705c6b09 (diff)
when the client disconnects prematurely, dump the request as received thus
far
Diffstat (limited to 'tests')
-rw-r--r--tests/server/sws.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c
index e420be855..689ef1d64 100644
--- a/tests/server/sws.c
+++ b/tests/server/sws.c
@@ -482,6 +482,10 @@ static int get_request(int sock, struct httprequest *req)
return DOCNUMBER_INTERNAL;
}
logmsg("Connection closed by client");
+ reqbuf[req->offset]=0;
+
+ /* dump the request receivied so far to the external file */
+ storerequest(reqbuf);
return DOCNUMBER_INTERNAL;
}
req->offset += got;