-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zero connection timeout is not supported in HTTP client with non-blocking connect #5150
Comments
olegmoz
added a commit
to olegmoz/jetty.project
that referenced
this issue
Aug 13, 2020
olegmoz
added a commit
to olegmoz/jetty.project
that referenced
this issue
Aug 13, 2020
olegmoz
added a commit
to olegmoz/jetty.project
that referenced
this issue
Aug 13, 2020
Signed-off-by: Oleg Mozzhechkov <oleg.mozzhechkov@gmail.com>
olegmoz
added a commit
to olegmoz/jetty.project
that referenced
this issue
Aug 13, 2020
Signed-off-by: Oleg Mozzhechkov <oleg.mozzhechkov@gmail.com>
sbordet
added a commit
that referenced
this issue
Aug 14, 2020
Issue #5150 - Infinite connection timeout support in ManagedSelector
Fixed by #5151. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: