Could you please give us some test code so that we can reproduce it? This kind of issue is quire hard to track, so we need to test by ourselves step by step.
Thanks in advance,
2005/6/9, Horia Muntean <email@example.com>:
Sorry for any message duplicates, but it seems that my first email did
not arrive at the mail list. Here it is:
I have one more strange situation. I have extended a bit the Reverser
example to build my server. I have only one client that connects to
the server.It is true that this client does not use NIO or MINA; it
works using classic streamed I/O:
final PrintWriter writer = new PrintWriter(socket.getOutputStream(), true);
final BufferedReader reader = new BufferedReader(new
The client, after opening the socket sends the login string to the
server and the server in case of succesfull authentication sends OK to
Also, the client sends every minute a heartbeat message to the server.
When the server receives this message just replies back to the client.
The client uses socket.setSoTimeout(120*1000) in order to detect if
the connection is idle.
But sometimes, after random running time, the client gets disconnected
due to a read timeout exception. I am able to open the connection
again, but the first read with String line = reader.readLine(); fails
with read timeout exception. On the server side, if I remember
corectly when I was using
mina-0.7.1-SNAPSHOT.jar none of the
ProtocolHandler callback was called, but now after swiching to
mina-0.7.2 only sessionCreated gets called, but nothing further.
what we call human nature is actually human habit