tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: 2 second delays in mod_jk while "maintaining workers"
Date Thu, 09 Sep 2010 12:59:50 GMT

On Sep 9, 2010, at 8:34 AM, Mladen Turk wrote:

> On 09/09/2010 02:09 PM, John Baker wrote:
>> Thanks for the feedback.
>> 
>> Can you tell me why this if statement exists:
>> 
>>         if (poll(&fds, 1, timeout)>  0)
>>        {
>>            ...
>>        }
>>        else
>>           break;
>> 
>> It appears to be at fault.
>> 
> 
> poll returns positive number if there is some data to
> read on the socket.
> It returns 0 in case of timeout (two seconds in this case).
> 
> 
> Try to change
> fds.events = POLLIN;
> to
> fds.events = POLLIN | POLLHUP | POLLERR;
> 
> 
> If that doesn't help, it's obvious the Tomcat
> doesn't close the socket, so should be investigated
> why. Like said before, either the Tomcat doesn't
> respond to shutdown or the shutdown's FIN packet
> isn't send to the Tomcat or back to mod_jk,
> due to some weird OS networking issues.
> 

+1


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message