We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc0004a commit 52fb043Copy full SHA for 52fb043
src/main/java/org/jruby/ext/openssl/SSLSocket.java
@@ -418,6 +418,7 @@ private void doHandshake(boolean blocking) throws IOException {
418
419
switch (hsStatus) {
420
case FINISHED:
421
+ case NOT_HANDSHAKING:
422
if ( initialHandshake ) finishInitialHandshake();
423
return;
424
case NEED_TASK:
@@ -444,9 +445,6 @@ private void doHandshake(boolean blocking) throws IOException {
444
445
netData.flip();
446
flushData(blocking);
447
break;
- case NOT_HANDSHAKING:
448
- // Opposite side could close while unwrapping. Handle this as same as FINISHED
449
- return;
450
default:
451
throw new IllegalStateException("Unknown handshaking status: " + hsStatus);
452
}
0 commit comments