RE: Connection is closed when CometEvent.close is called during an event

2010-06-29 Thread Reich, Matthias
> -Original Message- > From: Konstantin Kolinko > Sent: Friday, June 11, 2010 4:46 AM > To: Tomcat Users List > Subject: Re: Connection is closed when CometEvent.close is > called during an event > > Regarding Comet + Keep-Alive, if it does not work,

RE: Connection is closed when CometEvent.close is called during an event

2010-06-15 Thread Reich, Matthias
Konstantin Kolinko wrote: > 2010/6/11 Reich, Matthias : > > > > The concept of long poll is e.g. described in > > > http://www.javaworld.com/javaworld/jw-03-2008/jw-03-asynchhttp .html?page=6 > > > > The sequence of events in my situation is as follows: > > - a poll request is received by the serv

Re: Connection is closed when CometEvent.close is called during an event

2010-06-10 Thread Konstantin Kolinko
2010/6/11 Reich, Matthias : > > The concept of long poll is e.g. described in > http://www.javaworld.com/javaworld/jw-03-2008/jw-03-asynchhttp.html?page=6 > > The sequence of events in my situation is as follows: > - a poll request is received by the server > - the CoyoteAdapter.service method is c

RE: Connection is closed when CometEvent.close is called during an event

2010-06-10 Thread Reich, Matthias
On 10/06/2010 9:49 PM, Konstantin Kolinko wrote: > 2010/6/8 Reich, Matthias: > > I modified the code (in 6.0.20 and 6.0.26) so that the > error flag is not set. > > With that change Tomcat kept the connection open: > > > > ... > >    if (response.isClosed() || !request.isComet()) { > >        if

Re: Connection is closed when CometEvent.close is called during an event

2010-06-10 Thread Konstantin Kolinko
2010/6/8 Reich, Matthias : > I modified the code (in 6.0.20 and 6.0.26) so that the error flag is not set. > With that change Tomcat kept the connection open: > > ... >    if (response.isClosed() || !request.isComet()) { >        if (status==SocketStatus.OPEN) { >        //CometEvent.close was call

Re: Connection is closed when CometEvent.close is called during an event

2010-06-10 Thread Pid
On 08/06/2010 11:26, Reich, Matthias wrote: > Hello, > > I am using a CometProcessor servlet in a long-poll scenario, and recently had > a closer look at the life span of connections that are used for poll requests. > > I noticed that connections are closed by Tomcat whenever a poll request > wa