From: Daniel Stenberg Date: Mon, 21 Jun 2004 14:00:11 +0000 (+0000) Subject: when the client disconnects prematurely, dump the request as received thus X-Git-Tag: curl-7_12_1~248 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=67341c4cbe16f333877a366dcf1924e063c26013;p=thirdparty%2Fcurl.git when the client disconnects prematurely, dump the request as received thus far --- diff --git a/tests/server/sws.c b/tests/server/sws.c index e420be855d..689ef1d64e 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;