From ea0bcc12f77594228bb270f199ba54b5dc3ce453 Mon Sep 17 00:00:00 2001 From: suem Date: Wed, 29 May 2019 15:28:30 +0200 Subject: [PATCH] AMQ-6949: SocketTimeoutException when using HTTP transport connector A default socket timeout of 30 secods for the HTTP client was introduced with the following ticket: https://issues.apache.org/jira/browse/AMQ-6397 This timeout somewhow seems to conflict with the keep alive requests that stays open for arround 30 seconds. I increased the default timeout to 90 seconds and this seems to resolve the problem. --- .../org/apache/activemq/transport/http/HttpClientTransport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activemq-http/src/main/java/org/apache/activemq/transport/http/HttpClientTransport.java b/activemq-http/src/main/java/org/apache/activemq/transport/http/HttpClientTransport.java index 2480daae22..8e13fff905 100644 --- a/activemq-http/src/main/java/org/apache/activemq/transport/http/HttpClientTransport.java +++ b/activemq-http/src/main/java/org/apache/activemq/transport/http/HttpClientTransport.java @@ -72,7 +72,7 @@ import org.slf4j.LoggerFactory; */ public class HttpClientTransport extends HttpTransportSupport { - public static final int MAX_CLIENT_TIMEOUT = 30000; + public static final int MAX_CLIENT_TIMEOUT = 90000; private static final Logger LOG = LoggerFactory.getLogger(HttpClientTransport.class); private static final IdGenerator CLIENT_ID_GENERATOR = new IdGenerator();