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

when we receive a request overflow, we still dump the incoming request to

the dump file to make it easier to understand and debug the situation
parent 3d99b566
No related branches found
No related tags found
No related merge requests found
......@@ -262,6 +262,10 @@ static int get_request(int sock, int *part, int *open)
if (offset >= REQBUFSIZ) {
logmsg("Request buffer overflow, closing connection");
/* dump the request to an external file anyway */
reqbuf[REQBUFSIZ-1]=0;
storerequest(reqbuf);
return DOCNUMBER_INTERNAL;
}
reqbuf[offset]=0;
......
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