aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-01-30 09:27:27 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-01-30 09:27:27 +0000
commitf385b1976e911f5911fcc1b1af11c774e3605771 (patch)
tree311dd80150ca719a6693dceebbdd572c496f8411 /tests
parent3d99b566a639379e873721e9f29bd04a9df9a861 (diff)
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
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 a23cd9f42..796806e7f 100644
--- a/tests/server/sws.c
+++ b/tests/server/sws.c
@@ -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;