]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Add in Rasmus' suggested comments, making it hopefully more crystal
authorJim Jagielski <jim@apache.org>
Sat, 28 Aug 2004 11:35:27 +0000 (11:35 +0000)
committerJim Jagielski <jim@apache.org>
Sat, 28 Aug 2004 11:35:27 +0000 (11:35 +0000)
clear what we are doing and, more importantly, *why*.

PR:
Obtained from:
Submitted by:
Reviewed by:

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

src/main/http_request.c

index 64f5914800defcebe8dca788341263743934c4ef..6ea4315cd937a899dac4f685e1852884b2f61aa0 100644 (file)
@@ -1051,8 +1051,11 @@ API_EXPORT(void) ap_die(int type, request_rec *r)
     }
 
     /*
-     * We need to ensure that r->connection->keepalive is valid in
-     * order to determine if we can discard the request body below.
+     * We need to ensure that r->connection->keepalive is set in order
+     * to determine if we need to call ap_discard_request_body() to read
+     * the rest of the request body for this request.  There is no point
+     * reading the body for this request if we are not in keepalive mode
+     * since we are in ap_die() and about to toss this request anyway.
      */
     ap_set_keepalive(r);