From 262fca7c985e7b28e610d18bdbcd1554a6099e38 Mon Sep 17 00:00:00 2001 From: Martynas Date: Sun, 8 Dec 2024 18:19:07 +0100 Subject: [PATCH] Increased read/connect timeouts --- .../java/com/atomgraph/linkeddatahub/Application.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/atomgraph/linkeddatahub/Application.java b/src/main/java/com/atomgraph/linkeddatahub/Application.java index f49603fb1..65a1d30d4 100644 --- a/src/main/java/com/atomgraph/linkeddatahub/Application.java +++ b/src/main/java/com/atomgraph/linkeddatahub/Application.java @@ -1412,8 +1412,8 @@ public void releaseConnection(final HttpClientConnection managedConn, final Obje config.register(new QueryProvider()); config.register(new UpdateRequestProvider()); config.property(ClientProperties.FOLLOW_REDIRECTS, true); - config.property(ClientProperties.CONNECT_TIMEOUT, 1000); - config.property(ClientProperties.READ_TIMEOUT, 1000); + config.property(ClientProperties.CONNECT_TIMEOUT, 3000); + config.property(ClientProperties.READ_TIMEOUT, 30000); 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 config.property(ApacheClientProperties.CONNECTION_MANAGER, conman); config.property(ApacheClientProperties.CONNECTION_CLOSING_STRATEGY, new ApacheConnectionClosingStrategy.GracefulClosingStrategy()); @@ -1510,8 +1510,8 @@ public void releaseConnection(final HttpClientConnection managedConn, final Obje config.register(new QueryProvider()); config.register(new UpdateRequestProvider()); // TO-DO: UpdateRequestProvider config.property(ClientProperties.FOLLOW_REDIRECTS, true); - config.property(ClientProperties.CONNECT_TIMEOUT, 1000); - config.property(ClientProperties.READ_TIMEOUT, 1000); + config.property(ClientProperties.CONNECT_TIMEOUT, 3000); + config.property(ClientProperties.READ_TIMEOUT, 30000); 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 config.property(ApacheClientProperties.CONNECTION_MANAGER, conman); config.property(ApacheClientProperties.CONNECTION_CLOSING_STRATEGY, new ApacheConnectionClosingStrategy.GracefulClosingStrategy());