> Modified: httpd/httpd/trunk/modules/proxy/mod_proxy_http.c
> URL: 
> http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy_http.c?rev=1516930&r1=1516929&r2=1516930&view=diff
> ==============================================================================
> --- httpd/httpd/trunk/modules/proxy/mod_proxy_http.c (original)
> +++ httpd/httpd/trunk/modules/proxy/mod_proxy_http.c Fri Aug 23 16:48:42 2013
> @@ -1975,13 +1975,25 @@ static int proxy_http_handler(request_re
>              }
>          }
>
> +        /* Step Three-and-a-Half: See if the socket is still connected (if 
> desired) */
> +        if (worker->s->ping_timeout_set && worker->s->ping_timeout < 0 &&
> +            !ap_proxy_is_socket_connected(backend->sock)) {
> +            backend->close = 1;
> +            ap_log_rerror(APLOG_MARK, APLOG_INFO, status, r, APLOGNO()
> +                          "socket check failed to %pI (%s)",
> +                          worker->cp->addr, worker->s->hostname);
> +            retry++;
> +            continue;
> +        }
> +

This is already done in step 2 -- Is this to just narrow the window
between the check and writing the request, or is the previous check
not always happening.

Reply via email to