connect Timeout
Sets the default connect timeout for new connections. A value of Duration.INFINITE means no timeout, otherwise values must be between 1 and Integer.MAX_VALUE when converted to milliseconds or an exception will be thrown. The connect timeout is applied when connecting a TCP socket to the target host. The default value is 10 seconds.
Parameters
timeout
the connect timeout
Throws
if the timeout is invalid