You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jetty version: org.eclipse.jetty:jetty-client:9.4.30.v20200611
Java version: 1.8
OS: Windows 10
I am trying to set infinite connection timeout in HttpClient by setting it's connection timeout to zero value. The setting does makes connection timeout infinite in blocking mode (HttpClient.setConnectBlocking(true)) and makes connections fail with timeout exception in non-blocking mode (HttpClient.setConnectBlocking(true)).
Example:
HttpClientclient = newHttpClient();
client.setConnectBlocking(false);
client.setConnectTimeout(0);
client.newRequest(...).send(); // fails with SocketTimeoutException()
Jetty version:
org.eclipse.jetty:jetty-client:9.4.30.v20200611
Java version:
1.8
OS:
Windows 10
I am trying to set infinite connection timeout in
HttpClient
by setting it's connection timeout to zero value. The setting does makes connection timeout infinite in blocking mode (HttpClient.setConnectBlocking(true)
) and makes connections fail with timeout exception in non-blocking mode (HttpClient.setConnectBlocking(true)
).Example:
The reason seems to be no special handling for zero value in
ManagedSelector.Connect
constructor, see https://github.com/eclipse/jetty.project/blob/jetty-10.0.x/jetty-io/src/main/java/org/eclipse/jetty/io/ManagedSelector.java#L892The text was updated successfully, but these errors were encountered: