Details
Description
With the Mina components, a connection error occasionally occurs when establishing a StartTLS or TLS connection. The cause is that payload data was received immediately on the acknowledgement and is already in the receive buffer.
My colleagues have changed the checkStatus function of the SslHandler class from apache-mina-2.1.5-src.zip so that the sporadic error demonstrably no longer occurs. Please review the changes and include them in the codebase for the next release.
I have attached the original version of SslHandler.java, as well as the modified version. Thank you for your support!