Re: proxy_ajp connect timeout fix.

2008-12-29 Thread Jess Holle
Also note that the mod_jk code works just fine here, i.e. its socket connection timeouts are obeyed without further hackery. This is via jk_connect.c's nb_connect(), not APR, though -- so chalk one up for by-passing APR? -- Jess Holle Jess Holle wrote: Ruediger Pluem wrote: I guess you

Re: proxy_ajp connect timeout fix.

2008-12-18 Thread Jess Holle
Ruediger Pluem wrote: I guess you should move this over to d...@apr as this is likely a problem with the windows specific connect call not returning immediately. I moved this over to d...@apr as suggested, but have not received any responses there. Note that I applied Matt Stevenson's

Re: proxy_ajp connect timeout fix.

2008-12-17 Thread Ruediger Pluem
On 12/17/2008 12:38 AM, Jess Holle wrote: 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

Re: proxy_ajp connect timeout fix.

2008-12-16 Thread Jess Holle
Did anyone test this on Windows? 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

Re: proxy_ajp connect timeout fix.

2008-12-16 Thread Ruediger Pluem
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=727052view=rev from APR trunk. This should fix this. I ask as I am trying connectiontimeout=160ms

Re: proxy_ajp connect timeout fix.

2008-12-16 Thread Jess Holle
Thanks! 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=727052view=rev from APR trunk. This should fix this. I

Re: proxy_ajp connect timeout fix.

2008-12-16 Thread Jess Holle
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=9 retry=30 connectiontimeout=160ms

Re: proxy_ajp connect timeout fix.

2008-10-15 Thread Ruediger Pluem
On 10/15/2008 07:39 AM, Mladen Turk wrote: Ruediger Pluem wrote: I guess this leaves us to the question whether we need to be able to set connectiontimeouts below one second. Right now we are using a simple atoi for parsing those config values. Some more advanced function for parsing the

Re: proxy_ajp connect timeout fix.

2008-10-15 Thread Mladen Turk
Ruediger Pluem wrote: This would be similar what we have for parsing some file sizes across the conf (1024, 1K, 1M, ...) I'm not aware of any standard defining that, but since we underneath use apr_time anything from 1us should be valid time (weather it makes sense is a different story).

Re: proxy_ajp connect timeout fix.

2008-10-15 Thread Jess Holle
Mladen Turk wrote: Ruediger Pluem wrote: This would be similar what we have for parsing some file sizes across the conf (1024, 1K, 1M, ...) I'm not aware of any standard defining that, but since we underneath use apr_time anything from 1us should be valid time (weather it makes sense is a

Re: proxy_ajp connect timeout fix.

2008-10-14 Thread Ruediger Pluem
On 10/09/2008 10:11 PM, Matt Stevenson wrote: Had a bit more time, here is a patch that should work for Unix which have apr_wait_for_io_or_timeout available. I can't test windows/others so that's the reason for the ifdef. ProxyPass / balance://hotcluster/ Proxy balance://hotcluster #

Re: proxy_ajp connect timeout fix.

2008-10-14 Thread Ruediger Pluem
On 10/15/2008 02:28 AM, Ruediger Pluem wrote: On 10/09/2008 10:11 PM, Matt Stevenson wrote: Had a bit more time, here is a patch that should work for Unix which have apr_wait_for_io_or_timeout available. I can't test windows/others so that's the reason for the ifdef. ProxyPass /

Re: proxy_ajp connect timeout fix.

2008-10-14 Thread Jess Holle
Ruediger Pluem wrote: I checked 2.2.x and trunk in the meantime and they behaves as they should *without* the patch. If I try to connect to a non existing host the apr_socket_connect call returns after the timeout set via connectiontimeout. I guess this leaves us to the question whether we need

Re: proxy_ajp connect timeout fix.

2008-10-14 Thread Mladen Turk
Ruediger Pluem wrote: I guess this leaves us to the question whether we need to be able to set connectiontimeouts below one second. Right now we are using a simple atoi for parsing those config values. Some more advanced function for parsing the time should be added thought. Eg. timeout=30

Re: proxy_ajp connect timeout fix.

2008-10-13 Thread Ruediger Pluem
On 10/09/2008 10:11 PM, Matt Stevenson wrote: Had a bit more time, here is a patch that should work for Unix which have apr_wait_for_io_or_timeout available. I can't test windows/others so that's the reason for the ifdef. ProxyPass / balance://hotcluster/ Proxy balance://hotcluster #

Re: proxy_ajp connect timeout fix.

2008-10-09 Thread Ruediger Pluem
On 10/08/2008 10:55 PM, Matt Stevenson wrote: Hi, I've used mod_jk (1/2) for years. I've always had an issue when a backend server goes down, not tomcat/jboss stopped but dead. Recently some people I work with have been using mod_proxy and mod_proxy_ajp. This seems to have the same

Re: proxy_ajp connect timeout fix.

2008-10-09 Thread Matt Stevenson
- Original Message From: Matt Stevenson [EMAIL PROTECTED] To: dev@httpd.apache.org Sent: Wednesday, October 8, 2008 9:55:43 PM Subject: proxy_ajp connect timeout fix. Hi, I've used mod_jk (1/2) for years. I've always had an issue when a backend server goes down, not tomcat/jboss

Re: proxy_ajp connect timeout fix.

2008-10-09 Thread Ruediger Pluem
On 10/09/2008 10:11 PM, Matt Stevenson wrote: Had a bit more time, here is a patch that should work for Unix which have apr_wait_for_io_or_timeout available. I can't test windows/others so that's the reason for the ifdef. ProxyPass / balance://hotcluster/ Proxy balance://hotcluster #

proxy_ajp connect timeout fix.

2008-10-08 Thread Matt Stevenson
Hi, I've used mod_jk (1/2) for years. I've always had an issue when a backend server goes down, not tomcat/jboss stopped but dead. Recently some people I work with have been using mod_proxy and mod_proxy_ajp. This seems to have the same issue. The code (proxy_util.c) assumes that