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 2022/10/26 13:34:28 UTC

[httpcomponents-core] branch 5.1.x updated: Bug fix: HTTP/1.1 must continue message processing as long as there is data in the session input buffer

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 51fe8a18c Bug fix: HTTP/1.1 must continue message processing as long as there is data in the session input buffer
51fe8a18c is described below

commit 51fe8a18ce4b4f99e87563e66cb2b5d010b5aa00
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Wed Oct 26 14:51:12 2022 +0200

    Bug fix: HTTP/1.1 must continue message processing as long as there is data in the session input buffer
---
 .../org/apache/hc/core5/http/impl/nio/AbstractHttp1StreamDuplexer.java | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/AbstractHttp1StreamDuplexer.java b/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/AbstractHttp1StreamDuplexer.java
index 0a241894c..fdf33db45 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/AbstractHttp1StreamDuplexer.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/AbstractHttp1StreamDuplexer.java
@@ -336,9 +336,6 @@ abstract class AbstractHttp1StreamDuplexer<IncomingMessage extends HttpMessage,
                     ioSession.setEvent(SelectionKey.OP_READ);
                     inputEnd();
                 }
-                if (bytesRead == 0) {
-                    break;
-                }
             }
         } while (inbuf.hasData());