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
Issue #5150 - Infinite connection timeout support in ManagedSelector #5151
Issue #5150 - Infinite connection timeout support in ManagedSelector #5151
Conversation
Thank you for the pull request. But we need to satisfy the requirements of Eclipse Legal in order to accept / merge this pull request. The Eclipse Foundation ECA validation has failed for the commits on this pull request. See the "Details" link on the |
df72e4b
to
e4813e4
Compare
Signed-off-by: Oleg Mozzhechkov <oleg.mozzhechkov@gmail.com>
e4813e4
to
bffd6a2
Compare
@joakime thanks, I have signed-off the commit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@sbordet you should review this too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please update the javadocs for HttpClient.setConnectionTimeout()
and HttpClient.getConnectTimeout()
, adding that the value 0
means infinite timeout?
Other than that looks good.
@@ -888,7 +888,11 @@ public String toString() | |||
{ | |||
this.channel = channel; | |||
this.attachment = attachment; | |||
this.timeout = ManagedSelector.this._selectorManager.getScheduler().schedule(this, ManagedSelector.this._selectorManager.getConnectTimeout(), TimeUnit.MILLISECONDS); | |||
final long timeout = ManagedSelector.this._selectorManager.getConnectTimeout(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove final
, not necessary.
Signed-off-by: Oleg Mozzhechkov <oleg.mozzhechkov@gmail.com>
@sbordet thanks, removed |
Closes #5150
ManagedSelector
never timeouts connection in case connection timeout is set to zero.