File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
httpcore5/src/main/java/org/apache/hc/core5/reactor/ssl Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -620,10 +620,11 @@ private void decryptData(final IOSession protocolSession) throws IOException {
620
620
inPlainBuf .clear ();
621
621
}
622
622
}
623
- if (result .getStatus () != SSLEngineResult .Status .OK ) {
624
- if (result .getStatus () == SSLEngineResult .Status .BUFFER_UNDERFLOW && endOfStream ) {
625
- throw new SSLException ("Unable to decrypt incoming data due to unexpected end of stream" );
626
- }
623
+ if (result .getStatus () == SSLEngineResult .Status .BUFFER_UNDERFLOW && endOfStream ) {
624
+ throw new SSLException ("Unable to decrypt incoming data due to unexpected end of stream" );
625
+ }
626
+ if (result .getStatus () != SSLEngineResult .Status .OK ||
627
+ result .getHandshakeStatus () != HandshakeStatus .NOT_HANDSHAKING && result .getHandshakeStatus () != HandshakeStatus .FINISHED ) {
627
628
break ;
628
629
}
629
630
} finally {
You can’t perform that action at this time.
0 commit comments