File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
java/server/src/org/openqa/grid/internal Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 59
59
import java .util .HashMap ;
60
60
import java .util .Map ;
61
61
import java .util .UUID ;
62
+ import java .util .concurrent .TimeUnit ;
62
63
import java .util .logging .Logger ;
63
64
64
65
import javax .servlet .http .HttpServletRequest ;
@@ -193,13 +194,13 @@ public String toString() {
193
194
194
195
private HttpClient getClient () {
195
196
Registry reg = slot .getProxy ().getRegistry ();
196
- int browserTimeout = reg .getConfiguration ().browserTimeout ;
197
- if (browserTimeout > 0 ) {
198
- final int selenium_server_cleanup_cycle = browserTimeout / 10 ;
197
+ long browserTimeout = TimeUnit . SECONDS . toMillis ( reg .getConfiguration ().browserTimeout ) ;
198
+ if (browserTimeout > 0 ){
199
+ final long selenium_server_cleanup_cycle = browserTimeout / 10 ;
199
200
browserTimeout += (selenium_server_cleanup_cycle + MAX_NETWORK_LATENCY );
200
201
browserTimeout *=2 ; // Lets not let this happen too often
201
202
}
202
- return slot .getProxy ().getHttpClientFactory ().getGridHttpClient (browserTimeout , browserTimeout );
203
+ return slot .getProxy ().getHttpClientFactory ().getGridHttpClient (( int ) browserTimeout , ( int ) browserTimeout );
203
204
}
204
205
205
206
/*
You can’t perform that action at this time.
0 commit comments