Hi!

Sajit Zachariah wrote:
> 
> MINA is used for writing the client which connects to a device on tcp/ip.
> After establishing the connection with the device, If the network cable is
> unplugged of the device/client is unplugged, I was expecting a
> sessionclosed invocation but it is not happening. 
> 

There are 2 points you should check:
1. The filter chain of sessionClosed is broken.
Check the sessionClosed methods of your filters, if the following line is
present and always executed:
nextFilter.sessionClosed(session);
The "nextFilter" invocations ensures, that the event is forwarded to the
next IoFilter and, at least, to the IoHandler. If you don't forward it, the
event is just "consumed".
2. Ist the connection really terminated?
It isn't always possible to find out, that the connection is broken. If the
communication partners don't realize the broken connection, the connection
is still alive for them. Only workaround is a keep alive mechanism where one
of the partners periodically triggers keep alive messages and waits for a
response in a given time.

regards

Steve

-- 
View this message in context: 
http://www.nabble.com/SessionClosed-not-invoked-on-connection-loss..-Pls-Help-tp14750260s16868p14750962.html
Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.

Reply via email to