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.
This commit is contained in:
suem 2019-05-29 15:28:30 +02:00 committed by GitHub
parent d0fd46efcd
commit ea0bcc12f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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();