You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@apache.org on 2004/04/28 18:58:42 UTC
cvs commit: apache-1.3/src/main http_request.c
jim 2004/04/28 09:58:42
Modified: src/main http_request.c
Log:
handle error path where ap_set_keepalive() will set keepalive to 0
to note a "to be closed" connection, and thus avoid reading
in a body when not needed.
Revision Changes Path
1.174 +1 -1 apache-1.3/src/main/http_request.c
Index: http_request.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/main/http_request.c,v
retrieving revision 1.173
retrieving revision 1.174
diff -u -r1.173 -r1.174
--- http_request.c 16 Feb 2004 22:29:33 -0000 1.173
+++ http_request.c 28 Apr 2004 16:58:42 -0000 1.174
@@ -1056,7 +1056,7 @@
*/
if ((r->status != HTTP_NOT_MODIFIED) && (r->status != HTTP_NO_CONTENT)
&& !ap_status_drops_connection(r->status)
- && r->connection && (r->connection->keepalive != -1)) {
+ && r->connection && (r->connection->keepalive > 0)) {
(void) ap_discard_request_body(r);
}