You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2018/10/12 10:08:26 UTC

httpcomponents-core git commit: Bug fix: non-blocking SSL session incorrectly stops decrypting incoming data if unwrap operation results in NOT_HANDSHAKING status

Repository: httpcomponents-core
Updated Branches:
  refs/heads/master 0c540ab7e -> fde467624


Bug fix: non-blocking SSL session incorrectly stops decrypting incoming data if unwrap operation results in NOT_HANDSHAKING status


Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/fde46762
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/fde46762
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/fde46762

Branch: refs/heads/master
Commit: fde467624473fabcf0b0ba813faf2035973f0171
Parents: 0c540ab
Author: Oleg Kalnichevski <ol...@apache.org>
Authored: Fri Oct 12 12:06:11 2018 +0200
Committer: Oleg Kalnichevski <ol...@apache.org>
Committed: Fri Oct 12 12:06:11 2018 +0200

----------------------------------------------------------------------
 .../main/java/org/apache/hc/core5/reactor/ssl/SSLIOSession.java   | 3 ---
 1 file changed, 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/fde46762/httpcore5/src/main/java/org/apache/hc/core5/reactor/ssl/SSLIOSession.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/reactor/ssl/SSLIOSession.java b/httpcore5/src/main/java/org/apache/hc/core5/reactor/ssl/SSLIOSession.java
index a9bd2bc..b0951b3 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/reactor/ssl/SSLIOSession.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/reactor/ssl/SSLIOSession.java
@@ -496,9 +496,6 @@ public class SSLIOSession implements IOSession {
                     }
                     break;
                 }
-                if (result.getHandshakeStatus() != HandshakeStatus.NOT_HANDSHAKING) {
-                    break;
-                }
             } finally {
                 // Release inEncrypted if empty
                 if (this.inEncrypted.acquire().position() == 0) {