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 07:34:23 UTC

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


The following commit(s) were added to refs/heads/master by this push:
     new dcfa0f2  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
dcfa0f2 is described below

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