mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter royal <pro...@apache.org>
Subject Re: Behaviour of close
Date Sun, 10 Dec 2006 19:05:53 GMT
On Dec 10, 2006, at 5:27 AM, Benoit Hudzia wrote:
> When session.close() is called, does the close take precedence over  
> other
> operation or does it wait for the previous operation ( ex : message  
> send )
> to  be finished to execute itself .

it closes immediately. if you want to close after writing a message,  
put a listener on the WriteFuture that closes the connection (there  
is a canned listener to do this available with mina)

(ps, please don't reply to a message and change the subject to start  
a new thread. rather, compose a new message to dev@mina.apache.org)

proyal@apache.org - http://fotap.org/~osi

View raw message