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/04 08:50:40 UTC

[httpcomponents-core] 02/02: 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 HTTPCORE-684
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git

commit 4bc58d4df935d43c5171d4c5174a180f2e78a739
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..1cd5cc1 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) {
+            ensureHandler().inputReady(protocolSession, null);
+        }
     }
 
     private void encryptData(final IOSession protocolSession) throws IOException {