From 3d6586f985e8916e1e8b3cc7c9b73583985102cc Mon Sep 17 00:00:00 2001 From: Graham Leggett Date: Sat, 7 Apr 2001 19:41:03 +0000 Subject: [PATCH] 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 --- modules/proxy/proxy_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.50.1