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 2024/10/18 09:20:43 UTC
(httpcomponents-core) branch master updated (e50f42a4e -> 7a9465bd5)
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git
omit e50f42a4e Bug fix: fixed the problem with the HTTP/1.1 async protocol handler incorrectly reporting its state as CLOSED immediately after its instantiation until #onConnect event has been triggered
omit b52660213 Improved integration test resource wiring and configuration
new 7a9465bd5 Bug fix: fixed the problem with the HTTP/1.1 async protocol handler incorrectly reporting its state as CLOSED immediately after its instantiation until #onConnect event has been triggered
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 (e50f42a4e)
\
N -- N -- N refs/heads/master (7a9465bd5)
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:
.../apache/hc/core5/testing/SSLTestContexts.java | 38 +++------
.../testing/classic/ClassicAuthenticationTest.java | 9 +--
.../classic/ClassicHttp1CoreTransportTest.java | 9 +--
.../ClassicHttp1SocksProxyCoreTransportTest.java | 9 +--
.../classic/ClassicServerBootstrapFilterTest.java | 9 +--
...gResponseOutOfOrderStrategyIntegrationTest.java | 10 +--
.../testing/extension/SocksProxyResource.java | 20 +++--
.../extension/classic/HttpRequesterResource.java | 30 +++++---
.../extension/classic/HttpServerResource.java | 35 +++++----
.../extension/nio/H2AsyncRequesterResource.java | 33 ++++----
.../extension/nio/H2AsyncServerResource.java | 39 ++++++----
.../nio/H2MultiplexingRequesterResource.java | 32 ++++----
.../extension/nio/HttpAsyncRequesterResource.java | 32 ++++----
.../extension/nio/HttpAsyncServerResource.java | 38 +++++----
.../nio/AsyncServerBootstrapFilterTest.java | 87 +++++++++------------
.../apache/hc/core5/testing/nio/H2AlpnTest.java | 6 +-
.../hc/core5/testing/nio/H2ConnPoolTest.java | 11 +--
.../nio/H2CoreTransportMultiplexingTest.java | 11 +--
.../hc/core5/testing/nio/H2CoreTransportTest.java | 11 +--
.../testing/nio/H2ProtocolNegotiationTest.java | 11 +--
.../testing/nio/H2ServerBootstrapFiltersTest.java | 90 ++++++++++------------
.../testing/nio/H2SocksProxyCoreTransportTest.java | 11 +--
.../core5/testing/nio/Http1AuthenticationTest.java | 11 +--
.../core5/testing/nio/Http1CoreTransportTest.java | 11 +--
.../nio/Http1SocksProxyCoreTransportTest.java | 11 +--
.../hc/core5/testing/nio/TLSUpgradeTest.java | 11 +--
.../core5/testing/reactive/ReactiveClientTest.java | 11 +--
27 files changed, 274 insertions(+), 362 deletions(-)
(httpcomponents-core) 01/01: Bug fix: fixed the problem with the HTTP/1.1 async protocol handler incorrectly reporting its state as CLOSED immediately after its instantiation until #onConnect event has been triggered
Posted by ol...@apache.org.
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
commit 7a9465bd53ad800b2e6573371be4d14b73abbedd
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Thu Oct 17 19:40:03 2024 +0200
Bug fix: fixed the problem with the HTTP/1.1 async protocol handler incorrectly reporting its state as CLOSED immediately after its instantiation until #onConnect event has been triggered
---
.../org/apache/hc/core5/http/impl/nio/AbstractHttp1StreamDuplexer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 717022a12..8dfba165b 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
@@ -559,7 +559,7 @@ abstract class AbstractHttp1StreamDuplexer<IncomingMessage extends HttpMessage,
@Override
public boolean isOpen() {
- return connState == ConnectionState.ACTIVE;
+ return connState.compareTo(ConnectionState.ACTIVE) <= 0;
}
@Override