Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 5418 invoked by uid 6000); 14 Nov 1997 00:41:56 -0000 Received: (qmail 5412 invoked from network); 14 Nov 1997 00:41:55 -0000 Received: from paris.ics.uci.edu (mmdf@128.195.1.50) by taz.hyperreal.org with SMTP; 14 Nov 1997 00:41:55 -0000 Received: from kiwi.ics.uci.edu by paris.ics.uci.edu id aa08842; 13 Nov 97 15:53 PST To: new-httpd@apache.org Subject: [PATCH] protocol/1399: failing to read body In-reply-to: Your message of "Tue, 11 Nov 1997 22:21:17 PST." Date: Thu, 13 Nov 1997 15:41:38 -0800 From: "Roy T. Fielding" Message-ID: <9711131553.aa08842@paris.ics.uci.edu> Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org [repost, since it seems to have been missed in STATUS] This is what I mean by adding discard_request_body(r) to die(). Can somebody test it on the user's problem? .....Roy Index: http_request.c =================================================================== RCS file: /export/home/cvs/apachen/src/main/http_request.c,v retrieving revision 1.92 diff -u -r1.92 http_request.c --- http_request.c 1997/11/08 21:39:11 1.92 +++ http_request.c 1997/11/12 15:28:59 @@ -887,6 +887,17 @@ } /* + * If we want to keep the connection, be sure that the request body + * (if any) has been read. + */ + if ((r->status != HTTP_NOT_MODIFIED) && (r->status != HTTP_NO_CONTENT) + && !status_drops_connection(r->status) + && r->connection && (r->connection->keepalive != -1)) { + + (void) discard_request_body(r); + } + + /* * Two types of custom redirects --- plain text, and URLs. Plain text has * a leading '"', so the URL code, here, is triggered on its absence */