From da35a39885b6852887c7c503964a393102ea7a78 Mon Sep 17 00:00:00 2001 From: Jim Jagielski Date: Sat, 28 Aug 2004 11:35:27 +0000 Subject: [PATCH] Add in Rasmus' suggested comments, making it hopefully more crystal 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 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/http_request.c b/src/main/http_request.c index 64f5914800d..6ea4315cd93 100644 --- a/src/main/http_request.c +++ b/src/main/http_request.c @@ -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); -- 2.47.2