when the client disconnects prematurely, dump the request as received thus
authorDaniel Stenberg <daniel@haxx.se>
Mon, 21 Jun 2004 14:00:11 +0000 (14:00 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 21 Jun 2004 14:00:11 +0000 (14:00 +0000)
far

tests/server/sws.c

index e420be8..689ef1d 100644 (file)
@@ -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;