We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 390c403 commit 9d9407eCopy full SHA for 9d9407e
1 file changed
src/main/java/org/java_websocket/SSLSocketChannel2.java
@@ -134,7 +134,7 @@ private synchronized ByteBuffer unwrap() throws SSLException {
134
do {
135
rem = inData.remaining();
136
res = sslEngine.unwrap( inCrypt, inData );
137
- } while ( rem != inData.remaining() );
+ } while ( res.getStatus() == SSLEngineResult.Status.OK && (rem != inData.remaining() || res.getHandshakeStatus() == HandshakeStatus.NEED_UNWRAP));
138
139
inData.flip();
140
return inData;
0 commit comments