users@grizzly.java.net

Re: CLOSE_WAIT connections

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Tue, 25 Aug 2009 12:29:36 -0400

Salut,

small correction: onInterrupt will be invoked when the idle timeout
expire. onTerminate is only called when your application invoke
CometContext.notify(CometEvent.TERMINATE).

Thanks

-- Jeanfrancois

Jussi Kuosa wrote:
>> is it possible for you to create simple comet application and probably
>> client, which will reproduce the issue?
>
> Sure, I will try that tomorrow.
>
> -Jussi
>
> On Aug 13, 2009, at 15:24 , Jussi Kuosa wrote:
>> client has a timeout that kills the CONNECT HTTP connection during the
>> expiration wait period. The client sends a FIN and gets an ACK from
>> the
>> server, so the c->s side is closed. For some reason, the server does
>> not
>> notice that the client has begun to close the connection and the end
>> result
>> is that on the client the connection waits in FIN_WAIT_2 state and the
>> server has a CLOSE_WAIT connection.
>