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 2023/09/23 08:55:55 UTC

[httpcomponents-client] branch 5.2.x updated: HTTPCLIENT-2299: Socket timeout value set via DefaultManagedHttpClientConnection#setSocketTimeout is not correctly persisted and can be overwritten upon connection activation

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

olegk pushed a commit to branch 5.2.x
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git


The following commit(s) were added to refs/heads/5.2.x by this push:
     new 2bc399109 HTTPCLIENT-2299: Socket timeout value set via DefaultManagedHttpClientConnection#setSocketTimeout is not correctly persisted and can be overwritten upon connection activation
2bc399109 is described below

commit 2bc3991099f23066c6ce0c5c707a14010db35997
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Fri Sep 22 15:42:03 2023 +0200

    HTTPCLIENT-2299: Socket timeout value set via DefaultManagedHttpClientConnection#setSocketTimeout is not correctly persisted and can be overwritten upon connection activation
---
 .../hc/client5/http/impl/io/DefaultManagedHttpClientConnection.java      | 1 +
 1 file changed, 1 insertion(+)

diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/io/DefaultManagedHttpClientConnection.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/io/DefaultManagedHttpClientConnection.java
index a5f80a169..03d697dcd 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/io/DefaultManagedHttpClientConnection.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/io/DefaultManagedHttpClientConnection.java
@@ -165,6 +165,7 @@ final class DefaultManagedHttpClientConnection
             LOG.debug("{} set socket timeout to {}", this.id, timeout);
         }
         super.setSocketTimeout(timeout);
+        socketTimeout = timeout;
     }
 
     @Override