http://svn.apache.org/viewvc?view=rev&revision=541990
+1: niq, rpluem, jim
- * mod_proxy: Arrange the timeout handling. Related to PR11540.
- Trunk version of patch:
- http://svn.apache.org/viewvc?view=rev&revision=550514
- http://svn.apache.org/viewvc?view=rev&revision=546128
- +1: jfclere, jim, rpluem
-
PATCHES PROPOSED TO BACKPORT FROM TRUNK:
* mod_proxy: Fix the 503 returned when session route does
int loglevel;
apr_sockaddr_t *backend_addr = conn->addr;
apr_socket_t *newsock;
+ void *sconf = s->module_config;
+ proxy_server_conf *conf =
+ (proxy_server_conf *) ap_get_module_config(sconf, &proxy_module);
if (conn->sock) {
/*
if (worker->timeout_set == 1) {
apr_socket_timeout_set(newsock, worker->timeout);
}
+ else if (conf->timeout_set == 1) {
+ apr_socket_timeout_set(newsock, conf->timeout);
+ }
else {
apr_socket_timeout_set(newsock, s->timeout);
}
{
apr_sockaddr_t *backend_addr = conn->addr;
int rc;
+ apr_interval_time_t current_timeout;
/*
* The socket is now open, create a new backend server connection
"proxy: %s: connection complete to %pI (%s)",
proxy_function, backend_addr, conn->hostname);
+ /*
+ * save the timout of the socket because core_pre_connection
+ * will set it to base_server->timeout
+ * (core TimeOut directive).
+ */
+ apr_socket_timeout_get(conn->sock, ¤t_timeout);
/* set up the connection filters */
rc = ap_run_pre_connection(conn->connection, conn->sock);
if (rc != OK && rc != DONE) {
proxy_function, rc);
return rc;
}
+ apr_socket_timeout_set(conn->sock, current_timeout);
return OK;
}