diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2004-06-21 14:00:11 +0000 | 
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2004-06-21 14:00:11 +0000 | 
| commit | 67341c4cbe16f333877a366dcf1924e063c26013 (patch) | |
| tree | b3501ba12311c54d75d99c7932de8681170c5ca9 /tests | |
| parent | f8188ddfee29826487eb4d2008596584705c6b09 (diff) | |
when the client disconnects prematurely, dump the request as received thus
far
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/server/sws.c | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/tests/server/sws.c b/tests/server/sws.c index e420be855..689ef1d64 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; | 
