]> granicus.if.org Git - apache/commitdiff
Downstream keepalives in mod_proxy should not kick in if the upstream
authorGraham Leggett <minfrin@apache.org>
Sat, 7 Apr 2001 19:41:03 +0000 (19:41 +0000)
committerGraham Leggett <minfrin@apache.org>
Sat, 7 Apr 2001 19:41:03 +0000 (19:41 +0000)
client is < HTTP/1.1
PR:
Obtained from:
Reviewed by:

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88754 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_http.c

index 18f3ec6394c9af6e5805bef7d325a6199ecf9242..9709a05fb4d140f48b8009f2cf34a7f226ebcccb 100644 (file)
@@ -738,7 +738,7 @@ int ap_proxy_http_handler(request_rec *r, char *url,
     /* if the connection is < HTTP/1.1, or Connection: close,
      * we close the socket, otherwise we leave it open for KeepAlive support
      */
-    if (close) {
+    if (close || (r->proto_num < 1001)) {
         apr_socket_close(sock);
        conf->client_socket = NULL;
     }