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/06/16 13:25:12 UTC
[httpcomponents-core] 01/02: HTTPCORE-752: I/O reactor fails to initialize socket timeout for TLS connections correctly resulting in infinite (no timeout) by default
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 6f82d1c3d785cf3392fd3843c1b0b1f5e39eb8c9
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Fri Jun 16 12:03:13 2023 +0200
HTTPCORE-752: I/O reactor fails to initialize socket timeout for TLS connections correctly resulting in infinite (no timeout) by default
---
.../src/main/java/org/apache/hc/core5/reactor/SingleCoreIOReactor.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/reactor/SingleCoreIOReactor.java b/httpcore5/src/main/java/org/apache/hc/core5/reactor/SingleCoreIOReactor.java
index 248ce1049..a9c936554 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/reactor/SingleCoreIOReactor.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/reactor/SingleCoreIOReactor.java
@@ -214,8 +214,8 @@ class SingleCoreIOReactor extends AbstractSingleCoreIOReactor implements Connect
ioSessionDecorator,
sessionListener,
closedSessions);
- dataChannel.upgrade(this.eventHandlerFactory.createHandler(dataChannel, attachment));
dataChannel.setSocketTimeout(this.reactorConfig.getSoTimeout());
+ dataChannel.upgrade(this.eventHandlerFactory.createHandler(dataChannel, attachment));
key.attach(dataChannel);
dataChannel.handleIOEvent(SelectionKey.OP_CONNECT);
}