Skip to content

Commit 262fca7

Browse files
committed
Increased read/connect timeouts
1 parent d1b0aa7 commit 262fca7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/com/atomgraph/linkeddatahub/Application.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,8 +1412,8 @@ public void releaseConnection(final HttpClientConnection managedConn, final Obje
14121412
config.register(new QueryProvider());
14131413
config.register(new UpdateRequestProvider());
14141414
config.property(ClientProperties.FOLLOW_REDIRECTS, true);
1415-
config.property(ClientProperties.CONNECT_TIMEOUT, 1000);
1416-
config.property(ClientProperties.READ_TIMEOUT, 1000);
1415+
config.property(ClientProperties.CONNECT_TIMEOUT, 3000);
1416+
config.property(ClientProperties.READ_TIMEOUT, 30000);
14171417
config.property(ClientProperties.REQUEST_ENTITY_PROCESSING, RequestEntityProcessing.BUFFERED); // https://stackoverflow.com/questions/42139436/jersey-client-throws-cannot-retry-request-with-a-non-repeatable-request-entity
14181418
config.property(ApacheClientProperties.CONNECTION_MANAGER, conman);
14191419
config.property(ApacheClientProperties.CONNECTION_CLOSING_STRATEGY, new ApacheConnectionClosingStrategy.GracefulClosingStrategy());
@@ -1510,8 +1510,8 @@ public void releaseConnection(final HttpClientConnection managedConn, final Obje
15101510
config.register(new QueryProvider());
15111511
config.register(new UpdateRequestProvider()); // TO-DO: UpdateRequestProvider
15121512
config.property(ClientProperties.FOLLOW_REDIRECTS, true);
1513-
config.property(ClientProperties.CONNECT_TIMEOUT, 1000);
1514-
config.property(ClientProperties.READ_TIMEOUT, 1000);
1513+
config.property(ClientProperties.CONNECT_TIMEOUT, 3000);
1514+
config.property(ClientProperties.READ_TIMEOUT, 30000);
15151515
config.property(ClientProperties.REQUEST_ENTITY_PROCESSING, RequestEntityProcessing.BUFFERED); // https://stackoverflow.com/questions/42139436/jersey-client-throws-cannot-retry-request-with-a-non-repeatable-request-entity
15161516
config.property(ApacheClientProperties.CONNECTION_MANAGER, conman);
15171517
config.property(ApacheClientProperties.CONNECTION_CLOSING_STRATEGY, new ApacheConnectionClosingStrategy.GracefulClosingStrategy());

0 commit comments

Comments
 (0)