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/09/06 06:52:46 UTC

[httpcomponents-core] branch 5.1.x updated: HTTPCORE-684: async SSL i/o session fails to propagate end-of-stream events to the protocol handler. This can cause a failure in handling of identity transfer encoded HTTP/1.1 response messages

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 26bfbf1  HTTPCORE-684: async SSL i/o session fails to propagate end-of-stream events to the protocol handler. This can cause a failure in handling of identity transfer encoded HTTP/1.1 response messages
26bfbf1 is described below

commit 26bfbf1f59a22a27e54408016f8fcd3787679ed3
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Sat Sep 4 10:49:39 2021 +0200

    HTTPCORE-684: async SSL i/o session fails to propagate end-of-stream events to the protocol handler. This can cause a failure in handling of identity transfer encoded HTTP/1.1 response messages
---
 .../src/main/java/org/apache/hc/core5/reactor/ssl/SSLIOSession.java    | 3 +++
 1 file changed, 3 insertions(+)

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 45cd4a7..ee18449 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
@@ -569,6 +569,9 @@ public class SSLIOSession implements IOSession {
                 }
             }
         }
+        if (endOfStream && !inEncrypted.hasData()) {
+            ensureHandler().inputReady(protocolSession, null);
+        }
     }
 
     private void encryptData(final IOSession protocolSession) throws IOException {