I am using Mina 1.0.2. It seems that sometimes the SSLFilter gets into a weird state when there are connection-related problems. I have a client application that sends keep-alives every 30 seconds. The last successful keep alive I have is at:
03:04:14,552 Keep-alive response message received I suspect shortly thereafter some sort of transient network failure occurred, but I have nothing in my logs to indicate that. For several minutes thereafter I see requests being sent but no responses being received. I believe the SSLFilter at this point is buffering the request data because for some reason it gets into a state where it believes the handshake is not complete (see DEBUG logs later in this msg). Subsequently, I have the following in my logs: 03:13:37,654 TCP/IP session with remote [/x:y] closed 03:14:14,562 TCP/IP session with remote [/x:y] opened But still no messages were being received by the remote side. I then turned on DEBUG logging, and I have the following in my logs: 11:02:44,395 [/x:y] WRITE: DirectBuffer[pos=0 lim=66 cap=128: ...] 11:02:44,395 [/x:y] Filtered Write: [EMAIL PROTECTED] 11:02:44,395 [/x:y] Handshaking is not complete yet. Buffering write request. 11:02:44,396 [/x:y] Filtered Write: [EMAIL PROTECTED] 11:02:44,396 [/x:y] Handshaking is not complete yet. Buffering write request. So it seems that the SSL handshake filter now believes that the handshake is not complete and therefore does not write any of the requests. A trace confirms that nothing is being written to the wire by Mina. At this point I do not have a reproduction recipe but this is what I'm seeing so far. Cheers, Raman Gupta
