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 2021/10/13 08:25:34 UTC

[httpcomponents-core] branch 5.1.x updated: Bug fix: TLS handshake completion status not updated

This is an automated email from the ASF dual-hosted git repository.

olegk pushed a commit to branch 5.1.x
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git


The following commit(s) were added to refs/heads/5.1.x by this push:
     new ee81500  Bug fix: TLS handshake completion status not updated
ee81500 is described below

commit ee815009975d45671a505fb571410ac4f16ec7d3
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Wed Oct 13 10:14:59 2021 +0200

    Bug fix: TLS handshake completion status not updated
---
 .../src/main/java/org/apache/hc/core5/reactor/ssl/SSLIOSession.java      | 1 +
 1 file changed, 1 insertion(+)

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 ee18449..cf6b941 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
@@ -377,6 +377,7 @@ public class SSLIOSession implements IOSession {
         // to SSLEngine.wrap()/unwrap() when that call finishes a handshake.
         // It is never generated by SSLEngine.getHandshakeStatus().
         if (result != null && result.getHandshakeStatus() == HandshakeStatus.FINISHED) {
+            this.handshakeStateRef.set(TLSHandShakeState.COMPLETE);
             this.session.setSocketTimeout(this.socketTimeout);
             if (this.verifier != null) {
                 this.tlsDetails = this.verifier.verify(this.targetEndpoint, this.sslEngine);