[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mina-dev
Subject:    Re: sessionClosed() firing concurrently with messageReceived()?
From:       Sangjin Lee <sjlee0 () gmail ! com>
Date:       2009-08-25 15:52:44
Message-ID: 99d1baac0908250852i72325fbav494efa009fa0ee78 () mail ! gmail ! com
[Download RAW message or body]


Thanks.  That's what I always thought.  I was troubleshooting an issue, and
wanted to rule that out.  My reading of the code confirms that too...
Regards,
Sangjin

On Tue, Aug 25, 2009 at 5:55 AM, Julien Vermillard
<jvermillard@archean.fr>wrote:

> Le Sun, 23 Aug 2009 09:21:20 -0700,
> Sangjin Lee <sjlee@apache.org> a =E9crit :
>
> > This might be a simple question to answer, but thought I'd ask anyway.
> > Suppose you have a valid (HTTP) request and a valid response at the
> > end of which the server closes the connection.  But the full response
> > is properly sent to a MINA client.  From the client perspective, is
> > it ever possible for sessionClosed() to fire while messageReceived()
> > (and decoding) is in flight? Let's say this is on MINA 1.1.x.
> >
> > I've gone over the SocketIoProcessor code and also the filter chain,
> > and it seems that sessionClosed() in this case should always happen
> > *after messageReceived() (and decoding) is complete
> > (SocketIoProcessor.run())*. I'm trying to see if we're running into
> > this issue and if this is a valid condition whether I need to guard
> > against it.  Thanks!
> >
> > Sangjin
>
> For me sessionClosed is fired after any message received.
> Julien
>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic