mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matteo Merli" <matteo.me...@gmail.com>
Subject Re: Problems closing connections
Date Wed, 16 Jan 2008 14:29:03 GMT
I've attached two test cases, one that works with MINA 1.1 (and works fine)
and other with MINA 2.0 that doesn't close connections.

This is a simple echo server that receives a message, writes it back to the
client and (should) close the connection.

On Jan 15, 2008 4:18 PM, Matteo Merli <matteo.merli@gmail.com> wrote:

> Hi,
>
> I'm having some problems in closing connections in a Mina 2.0 server
> (today updated svn, but the issue was already present)
>
> Basically, I'm notiicing that when I do a  connection.close() a FIN
> packet is not being sent to the client. Mina will consider the session
> as closed, but the client will not notice it.
>
> Trying to dig the problem (suspecting it was in my code) I took the
> "Echo server" example and changed it to close connection after the 1st
> response is sent:
>
> session.write(((IoBuffer) message).duplicate()).addListener(
> IoFutureListener.CLOSE );
>
> This is showing the same problem: no FIN packet is sent by the server.
> I've attached a tcpdump capture of the echo example.
>
> Is there some detail that I'm missing?
>
> Thank you,
> Matteo
>
> --
> Matteo Merli
> <matteo.merli@gmail.com>
>



-- 
Matteo Merli
<matteo.merli@gmail.com>

Mime
View raw message