httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jess Holle <je...@ptc.com>
Subject Re: proxy_ajp connect timeout fix.
Date Tue, 16 Dec 2008 23:38:58 GMT
The errno assignments you added did the trick.

Unfortunately, I'm still missing the overall goal.  I have many proxy 
balance members like:

    BalancerMember ajp://localhost:8010 route=tomcat1 min=16 max=80
    smax=40 ttl=900 keepalive=Off timeout=90000 retry=30
    connectiontimeout=160ms flushpackets=on

    BalancerMember ajp://localhost:8011 route=tomcat2 min=16 max=80
    smax=40 ttl=900 keepalive=Off timeout=90000 retry=30
    connectiontimeout=160ms flushpackets=on

    ...

However, the error log says:

    [Tue Dec 16 17:32:*25* 2008] [error] (OS 10061)No connection could be made because the
target machine actively refused it.  : proxy: AJP: attempt to connect to 127.0.0.1:8011 (localhost)
failed
    [Tue Dec 16 17:32:25 2008] [error] ap_proxy_connect_backend disabling worker for (localhost)
    [Tue Dec 16 17:32:25 2008] [error] proxy: AJP: failed to make connection to backend: localhost

    [Tue Dec 16 17:32:*26* 2008] [error] (OS 10061)No connection could be made because the
target machine actively refused it.  : proxy: AJP: attempt to connect to 127.0.0.1:8012 (localhost)
failed
    [Tue Dec 16 17:32:26 2008] [error] ap_proxy_connect_backend disabling worker for (localhost)
    [Tue Dec 16 17:32:26 2008] [error] proxy: AJP: failed to make connection to backend: localhost
    ...
      

Each port (on Windows) still consistently takes right around 1 full 
second to reject. despite having set connectiontimeout to be 160ms.

Something seems to still be awry here as 160ms is significantly less 
than 1000ms...

--
Jess Holle

Ruediger Pluem wrote:
> On 12/16/2008 11:17 PM, Jess Holle wrote:
>   
>> Did anyone test this on Windows?
>>     
> I stumbled across the same issue on Red Hat AS 5 today.
> Try to patch your APR with
>
> http://svn.apache.org/viewvc?rev=727052&view=rev
>
> from APR trunk. This should fix this
>> I ask as I am trying connectiontimeout=160ms as part of my Apache 2.2.11
>> configuration and am getting a configuration error.  I get the same
>> error with "ping" and other parameters which now use
>> ap_timeout_parameter_parse().
>>
>> My BalanceMember looks something like:
>>
>>    BalancerMember ajp://localhost:8010 route=tomcat1 min=16 max=80
>> smax=40 ttl=900 keepalive=Off timeout=90000 retry=30
>> connectiontimeout=160ms flushpackets=on
>>     
> Regards
>
> RĂ¼diger
>   

Mime
View raw message