OK, thanks for confirming that the issue is still present with the latest jdk1.8.0_321 build.
The source of the issue seems to be some weird state of the SSLEngine
(status CLOSED
but handshake status NEED_WRAP
). I have im proved the SNMP4J 2.8.x code to cover this case too in TLSTM.ServerThread.runDelegatedTasks
. The following new if-statement ensures that the socket is registered with the outQueue to write out-data:
case CLOSED:
if (status == SSLEngineResult.HandshakeStatus.NOT_HANDSHAKING) {
return false;
}
break;
Please try this latest 2.8.9-SNPSHOT from today https://snmp.app/dist/snapshot/org/snmp4j/snmp4j/2.8.9-SNAPSHOT/snmp4j-2.8.9-20220215.112730-2.jar if it fixes the issue. I am not sure, because the SSLEngine
does not seem to produce any out-data in your case, which is unexpected (at least from my understanding).