-
Notifications
You must be signed in to change notification settings - Fork 72
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
How to set read and connect time outs? #53
Comments
Good question. In JAX-RS 2.0, read and connect timeouts were set in the Client API using implementation-specific properties - i.e. In JAX-RS 2.1, the expert group added the MP Rest Client is based on JAX-RS 2.0, so we could allow implementations of the spec to use those same properties from their JAX-RS 2.0 implementation. Or we could follow suit with JAX-RS 2.1 and add the timeout methods to Anybody have any strong opinions or alternative options? |
I would recommend leaving them as implementation specific properties, since we support registering properties. When we bump to the next version and JAX-RS 2.1 we can align to the methods added in JAX-RS 2.1 |
This issue might be mitigated somewhat if there was a way to unwrap an instance of the |
@dansiviter I was just thinking about coming back to this issue. Not all implementations use the Would it work for you if we added |
The concern there is one specific implementation is having a direct impact on specifications for convenience and not for practical reasons. After all, "Rest Client attempts to use JAX-RS 2.0 APIs for consistency and easier re-use." (although in this case it would be JAX-RS 2.1 spec!). Yes, adding |
No description provided.
The text was updated successfully, but these errors were encountered: