On Thu, Jan 14, 2010 at 8:22 PM, Emmanuel LŽcharny <[email protected]>wrote:

> This is strange. The code to close the connection is correct, but it seems
> that the session is waiting for some event to be processed before the close
> can be done.  Are you sending data just before closing the connection ?
>

The client connects, sends a login, sends another message, after the last
response is received it calls disonnect().



> A bit of code demonstrating the problem could help...
>

A piece of the code:

http://pastebin.com/m305c52b5


>
>  Otehrwise, you can also add a timeout to awaitUninterruptibly( 1000 )


I had tried it, but after the timeout it hangs in connector.dispose().

Thanks.


-- 
Leandro Casadei
QB9 Programmer
www.qb9.net

Reply via email to