From: Graham Leggett Date: Sat, 7 Apr 2001 19:41:03 +0000 (+0000) Subject: Downstream keepalives in mod_proxy should not kick in if the upstream X-Git-Tag: 2.0.17~96 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d6586f985e8916e1e8b3cc7c9b73583985102cc;p=apache Downstream keepalives in mod_proxy should not kick in if the upstream 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 --- diff --git a/modules/proxy/proxy_http.c b/modules/proxy/proxy_http.c index 18f3ec6394..9709a05fb4 100644 --- a/modules/proxy/proxy_http.c +++ b/modules/proxy/proxy_http.c @@ -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; }