You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by jb...@apache.org on 2019/07/26 09:26:36 UTC
[activemq] branch activemq-5.15.x updated: AMQ-6949:
SocketTimeoutException when using HTTP transport connector
This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch activemq-5.15.x
in repository https://gitbox.apache.org/repos/asf/activemq.git
The following commit(s) were added to refs/heads/activemq-5.15.x by this push:
new 8e8041c AMQ-6949: SocketTimeoutException when using HTTP transport connector
8e8041c is described below
commit 8e8041c69aaf1bcc99d352c777c248b6d5c6d0c5
Author: suem <su...@users.noreply.github.com>
AuthorDate: Wed May 29 15:28:30 2019 +0200
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.
---
.../java/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 479f8c0..6582bb8 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
@@ -69,7 +69,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();