Skip to content
Snippets Groups Projects
Commit 67341c4c authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

when the client disconnects prematurely, dump the request as received thus

far
parent f8188ddf
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment