httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Takashi Sato <se...@lans-tv.com>
Subject Re: Persistent proxy backend connections not working?
Date Fri, 28 Sep 2007 16:31:25 GMT
hello,

I tested with:
Windows XP Professional (SP2)
Apache httpd 2.2.4 (binary distibuted by ASF)
mod_proxy.so and mod_proxy_http.so 2.2.6 compiled with VC8

Backend server is Apache httpd 2.2.7-dev, prefork MPM, KeepAliveTimeout 10.

Before your patch the message 
[Sat Sep 29 00:54:00 2007] [debug] proxy_util.c(2109): proxy: HTTP: backend socket is disconnected.
appears on every requests.
After your patch that message doesn't appear unless my backend server kills connections.

I've attached my error.log.


On Wed, 26 Sep 2007 11:40:11 +0200
Ruediger Pluem <rpluem@apache.org> wrote:

> There is a PR (43472, http://issues.apache.org/bugzilla/show_bug.cgi?id=43472)
> that the test in is_socket_connected in proxy_util.c whether a backend connection
> is still alive or not does not work. I created a patch that seems to fix the issue
> on Solaris 9 (according to the reporter) and on Linux (according to my tests).
> Could someone with a Win32 environment available please test if this also works
> fine on Windows before I commit to trunk? Thanks.
> BTW: I am not sure if EAGAIN will be ever returned by apr_poll but I left it
> it in the if statement.
> 
> 
> 
> Index: modules/proxy/proxy_util.c
> ===================================================================
> --- modules/proxy/proxy_util.c  (Revision 579251)
> +++ modules/proxy/proxy_util.c  (Arbeitskopie)
> @@ -2078,7 +2078,7 @@
>          else
>              return 0;
>      }
> -    else if (APR_STATUS_IS_EAGAIN(status)) {
> +    else if (APR_STATUS_IS_TIMEUP(status) || APR_STATUS_IS_EAGAIN(status)) {
>          return 1;
>      }
>      return 0;
> 
> 


-- 
Takashi Sato
serai@lans-tv.com

Mime
View raw message