mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
* Introduce environment variable proxy-initial-not-pooled to avoid reusing
pooled connections if the client connection is an initial connection. This avoids the "proxy: error reading status line from remote server" error caused by the race condition that the backend server closed the connection after the connection check on our side and before our data reached the backend. Yes, this downgrades performance, especially with HTTP/1.0 clients. Hence it is configurable and off by default. PR: 37770 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@684351 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -2167,6 +2167,11 @@ ap_proxy_determine_connection(apr_pool_t *p, request_rec *r,
|
||||
else {
|
||||
conn->addr = worker->cp->addr;
|
||||
}
|
||||
/* Close a possible existing socket if we are told to do so */
|
||||
if (conn->close) {
|
||||
socket_cleanup(conn);
|
||||
conn->close = 0;
|
||||
}
|
||||
|
||||
if (err != APR_SUCCESS) {
|
||||
return ap_proxyerror(r, HTTP_BAD_GATEWAY,
|
||||
|
Reference in New Issue
Block a user