[prev in list] [next in list] [prev in thread] [next in thread] 

List:       httpcomponents-commits
Subject:    [httpcomponents-core] 01/01: Bug fix: HTTP/1.1 protocol handler must continue message processing as 
From:       olegk () apache ! org
Date:       2022-10-27 12:58:28
Message-ID: 20221027125827.72FDF440184 () gitbox2-he-fi ! apache ! org
[Download RAW message or body]

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 <olegk@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;
                 }
             }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic