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/27 12:58:27 UTC

[httpcomponents-core] branch 5.1.x updated (51fe8a18c -> f741ebbd1)

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

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


 discard 51fe8a18c Bug fix: HTTP/1.1 must continue message processing as long as there is data in the session input buffer
     new f741ebbd1 Bug fix: HTTP/1.1 protocol handler must continue message processing as long as there is data in the session input buffer

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (51fe8a18c)
            \
             N -- N -- N   refs/heads/5.1.x (f741ebbd1)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../org/apache/hc/core5/http/impl/nio/AbstractHttp1StreamDuplexer.java  | 2 ++
 1 file changed, 2 insertions(+)


[httpcomponents-core] 01/01: Bug fix: HTTP/1.1 protocol handler must continue message processing as long as there is data in the session input buffer

Posted by ol...@apache.org.
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

commit f741ebbd15d1bbeff214f28290e6e25e0696154a
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Thu Oct 27 14:51:34 2022 +0200

    Bug fix: HTTP/1.1 protocol handler 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, 1 insertion(+), 2 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..b3bb02506 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
@@ -335,8 +335,7 @@ abstract class AbstractHttp1StreamDuplexer<IncomingMessage extends HttpMessage,
                     incomingMessage = null;
                     ioSession.setEvent(SelectionKey.OP_READ);
                     inputEnd();
-                }
-                if (bytesRead == 0) {
+                } else if (bytesRead == 0) {
                     break;
                 }
             }