Sorry for any message duplicates, but it seems that my first email did not arrive at the mail list. Here it is:
Hello, 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 InputStreamReader(socket.getInputStream())); The client, after opening the socket sends the login string to the server and the server in case of succesfull authentication sends OK to the client. 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. Regards, Horia
