A workaround for 'missing algorithm' error during handshake
This commit is contained in:
parent
333f45ccd5
commit
dce019966e
@ -624,7 +624,14 @@ public class SslHandler extends FrameDecoder {
|
||||
try {
|
||||
loop:
|
||||
for (;;) {
|
||||
SSLEngineResult result = engine.unwrap(inNetBuf, outAppBuf);
|
||||
SSLEngineResult result;
|
||||
if (handshaking) {
|
||||
synchronized (handshakeLock) {
|
||||
result = engine.unwrap(inNetBuf, outAppBuf);
|
||||
}
|
||||
} else {
|
||||
result = engine.unwrap(inNetBuf, outAppBuf);
|
||||
}
|
||||
|
||||
switch (result.getHandshakeStatus()) {
|
||||
case NEED_UNWRAP:
|
||||
|
Loading…
Reference in New Issue
Block a user