]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
This path makes sense only in non-keepalive modes
authorJim Jagielski <jim@apache.org>
Mon, 29 Mar 2004 17:38:01 +0000 (17:38 +0000)
committerJim Jagielski <jim@apache.org>
Mon, 29 Mar 2004 17:38:01 +0000 (17:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@103190 13f79535-47bb-0310-9956-ffa450edef68

src/main/http_protocol.c

index 77680cfc2b32348ec0d8c5eaa1355210e1b0294b..61415926083e6393bd8a596d968b8a8bbd85bcd9 100644 (file)
@@ -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