Download | Plain Text | Line Numbers
--- httpd-2.4.12/modules/proxy/proxy_util.c.orig 2015-03-09 15:08:06.237756037 +0100
+++ httpd-2.4.12/modules/proxy/proxy_util.c 2015-03-09 15:08:38.454298418 +0100
@@ -2653,6 +2653,10 @@
}
conn->connection = NULL;
+ /* Set a timeout for connecting to the backend on the socket */
+ if (worker->s->conn_timeout_set) {
+ apr_socket_timeout_set(newsock, worker->s->conn_timeout);
+ }
rv = ap_proxy_connect_uds(newsock, conn->uds_path, conn->scpool);
if (rv != APR_SUCCESS) {
apr_socket_close(newsock);