From b2d468c721f5216e51716412b8e4ea24b19a0821 Mon Sep 17 00:00:00 2001 From: Viet Nguyen Duc Date: Thu, 25 Jul 2024 12:44:43 +0000 Subject: [PATCH] Allow setting JDKHttpClient connectionTimeout, readTimeout, version via system property Signed-off-by: Viet Nguyen Duc --- java/src/org/openqa/selenium/remote/http/ClientConfig.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/java/src/org/openqa/selenium/remote/http/ClientConfig.java b/java/src/org/openqa/selenium/remote/http/ClientConfig.java index 7c2af11628460..69574a3730063 100644 --- a/java/src/org/openqa/selenium/remote/http/ClientConfig.java +++ b/java/src/org/openqa/selenium/remote/http/ClientConfig.java @@ -63,13 +63,13 @@ protected ClientConfig( public static ClientConfig defaultConfig() { return new ClientConfig( null, - Duration.ofSeconds(10), - Duration.ofMinutes(3), + Duration.ofSeconds(Long.parseLong(System.getProperty("webdriver.httpclient.connectionTimeout", "10"))), + Duration.ofMinutes(Long.parseLong(System.getProperty("webdriver.httpclient.readTimeout", "3"))), DEFAULT_FILTER, null, null, null, - null); + System.getProperty("webdriver.httpclient.version", null)); } public ClientConfig baseUri(URI baseUri) {