From: Jim Jagielski Date: Mon, 29 Mar 2004 17:38:01 +0000 (+0000) Subject: This path makes sense only in non-keepalive modes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76e6753bb0ec956b5737a3af00c3618277cb40ad;p=thirdparty%2Fapache%2Fhttpd.git This path makes sense only in non-keepalive modes git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@103190 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/main/http_protocol.c b/src/main/http_protocol.c index 77680cfc2b3..61415926083 100644 --- a/src/main/http_protocol.c +++ b/src/main/http_protocol.c @@ -976,7 +976,7 @@ static int read_request_line(request_rec *r) */ ap_bsetflag(conn->client, B_SAFEREAD, 1); while ((len = ap_getline(l, sizeof(l), conn->client, 0)) <= 0) { - if ((len < 0) || ap_bgetflag(conn->client, B_EOF)) { + if ((len < 0) || ap_bgetflag(conn->client, B_EOF) || !conn->keepalives) { ap_bsetflag(conn->client, B_SAFEREAD, 0); /* this is a hack to make sure that request time is set, * it's not perfect, but it's better than nothing