File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
java/client/src/org/openqa/selenium/remote/internal Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 17
17
18
18
package org .openqa .selenium .remote .internal ;
19
19
20
+ import static java .util .concurrent .TimeUnit .MINUTES ;
21
+
20
22
import com .google .common .base .Strings ;
21
23
22
24
import org .openqa .selenium .remote .http .HttpClient ;
34
36
import java .io .IOException ;
35
37
import java .net .URL ;
36
38
import java .util .Optional ;
39
+ import java .util .concurrent .TimeUnit ;
37
40
38
41
public class OkHttpClient implements HttpClient {
39
42
@@ -122,7 +125,8 @@ public HttpClient createClient(URL url) {
122
125
okhttp3 .OkHttpClient .Builder client = new okhttp3 .OkHttpClient .Builder ()
123
126
.connectionPool (pool )
124
127
.followRedirects (true )
125
- .followSslRedirects (true );
128
+ .followSslRedirects (true )
129
+ .readTimeout (0 , MINUTES );
126
130
127
131
String info = url .getUserInfo ();
128
132
if (!Strings .isNullOrEmpty (info )) {
You can’t perform that action at this time.
0 commit comments