]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
handle error path where ap_set_keepalive() will set keepalive to 0
authorJim Jagielski <jim@apache.org>
Wed, 28 Apr 2004 16:58:42 +0000 (16:58 +0000)
committerJim Jagielski <jim@apache.org>
Wed, 28 Apr 2004 16:58:42 +0000 (16:58 +0000)
to note a "to be closed" connection, and thus avoid reading
in a body when not needed.

PR:
Obtained from:
Submitted by:
Reviewed by:

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@103539 13f79535-47bb-0310-9956-ffa450edef68

src/main/http_request.c

index ef4ed74a7e68c2054725240664634b453a39d310..c1ccea74039500971bf8575c687afbe71f04e78f 100644 (file)
@@ -1056,7 +1056,7 @@ API_EXPORT(void) ap_die(int type, request_rec *r)
      */
     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);
     }