-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expose netty connect timeout #725
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
Expose netty connect timeout #725
Conversation
| /** | ||
| * Configure connection timeout in milliseconds | ||
| */ | ||
| public NettyDockerCmdExecFactory withConnectTimeout(Integer connectTimeout) { |
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.
Jersey has com.github.dockerjava.jaxrs.JerseyDockerCmdExecFactory#withConnectTimeout(Integer connectTimeout) so move method to DockerCmdExecFactory ?
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.
I'm not sure if we should do that. Consider a new DockerCmdExecFactory implementation where this can't be configured...
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.
this option is must have for any remote connection and we can remove it any time later.
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.
Additionally I don't see any advantage to do so. A user is working against a concrete implementation for sure and internally we don't need this option. All these options (connect timeout, read timeout...) were moved from DockerConfig to concrete DockerCmdExecFactory implementation sometimes ago as these are highly implementation specific options.
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.
Because netty impl is buggy i keep NETTY/JERSEY choose. Connect timeout seems reasonable for any impl. But i can configure it in conditionals on my side of course.
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.
As its not usual to support multiple implementations I think its OK to do so in your case.
@KostyaSha For review.
This change is