We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8add578 commit 5f3f7d0Copy full SHA for 5f3f7d0
java/src/org/openqa/selenium/grid/router/HandleSession.java
@@ -73,7 +73,9 @@ class HandleSession implements HttpHandler {
73
74
this.httpClients =
75
CacheBuilder.newBuilder()
76
- .expireAfterAccess(Duration.ofMinutes(1))
+ // this timeout must be bigger than default connection + read timeout, to ensure we do
77
+ // not close HttpClients which might have requests waiting for responses
78
+ .expireAfterAccess(Duration.ofMinutes(4))
79
.removalListener(
80
(RemovalListener<URL, HttpClient>) removal -> removal.getValue().close())
81
.build();
0 commit comments