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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to