You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by rs...@apache.org on 2026/10/16 19:49:23 UTC

(httpcomponents-core) branch master updated: AsyncH2SocketTimeoutCoreTest: Bind to `127.0.0.1` explicitly

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

rschmitt 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 fbf8ebde6 AsyncH2SocketTimeoutCoreTest: Bind to `127.0.0.1` explicitly
fbf8ebde6 is described below

commit fbf8ebde6adb9f430a9b2985dadffb5cbd49aa32
Author: Ryan Schmitt <rs...@apache.org>
AuthorDate: Fri Oct 16 12:44:00 2026 -0700

    AsyncH2SocketTimeoutCoreTest: Bind to `127.0.0.1` explicitly
---
 .../apache/hc/core5/testing/async/AsyncH2SocketTimeoutCoreTest.java   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/async/AsyncH2SocketTimeoutCoreTest.java b/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/async/AsyncH2SocketTimeoutCoreTest.java
index bcf2cb4fc..bdab16d2a 100644
--- a/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/async/AsyncH2SocketTimeoutCoreTest.java
+++ b/httpcore5-testing/src/test/java/org/apache/hc/core5/testing/async/AsyncH2SocketTimeoutCoreTest.java
@@ -137,7 +137,9 @@ void testHttp2RequestTimeoutYieldsStreamReset() throws Exception {
 
     private InetSocketAddress startServer() throws Exception {
         final HttpAsyncServer server = serverResource.start();
-        final ListenerEndpoint listener = server.listen(new InetSocketAddress(0), URIScheme.HTTP).get();
+        final ListenerEndpoint listener = server.listen(
+                new InetSocketAddress("127.0.0.1", 0),
+                URIScheme.HTTP).get();
         return (InetSocketAddress) listener.getAddress();
     }