Skip to content

Commit

Permalink
Allow setting JDKHttpClient connectionTimeout, readTimeout, version v…
Browse files Browse the repository at this point in the history
…ia system property

Signed-off-by: Viet Nguyen Duc <[email protected]>
  • Loading branch information
VietND96 committed Jul 25, 2024
1 parent 139af72 commit b2d468c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions java/src/org/openqa/selenium/remote/http/ClientConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b2d468c

Please sign in to comment.