-
Notifications
You must be signed in to change notification settings - Fork 194
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
ManagerSettings.managerConnectionTimeout #297
Comments
I'm OK with such a change if it doesn't significantly complicate the code
base. I'd imagine it should be possible to piggy-back on the
managerResponseTimeout code already present. What is your proposed
signature for managerConnectionTimeout? How would it interact with
managerResponseTimeout values?
…On Tue, Aug 29, 2017 at 4:01 PM, nikomi ***@***.***> wrote:
Would you consider adding a separate ManagerSettings.
managerConnectionTimeout in addition to managerResponseTimeout so the
connection timeout can be different from the response timeout?
A bit of background:
We built a Manager extension with circuit breaker functionality, using
Request.getConnectionWrapper to enforce a connection timeout different
from the configurable response timeout. With the API change from
http-client 0.4.x → 0.5.x getConnectionWrapper was dropped, therefore we
can no longer support this feature in this way. Instead of bringing back
Request.getConnectionWrapper we believe adding ManagerSettings.
managerConnectionTimeout would probably benefit more people.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#297>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADBB_o2CRN3m4b9hSnhpWRf302Zlyo8ks5sdAu9gaJpZM4PF5MS>
.
|
Thanks for considering the change! I think the signature could be the same as
|
I think there may be some issues with getting these two mechanisms to coexist cleanly, without instead making one supersede the other, but I could be wrong. If you want to take a stab at a PR, I'll be happy to review. |
I'm afraid I have no clue how I'm not sure I do understand your concerns, I thought that the |
My point is that, currently, the response timeout covers both the connection and first successful I'm not going to have a chance to attack this one myself any time soon, so if someone else wants to take a stab at it, feel free to speak up here. |
Ah, I see - yes, this would definitely need proper documentation. In terms of PR - I'll leave this open for a while and see what I can do. |
I'm sorry I did not find the time to work on this... but before closing this I have question: Since we are still using http-client 0.4 - which does not compile with GHC 8.4 and we therefore need to upgrade in the forseeable future - we would like to know if you already have plans (and possibly a time frame) for the next API change, probably called http-client 0.6? |
I have no plans currently. |
Thanks for the info, I'll close this one as it does not look like I'll be getting it done soon... |
Would you consider adding a separate
ManagerSettings.managerConnectionTimeout
in addition tomanagerResponseTimeout
so the connection timeout can be different from the response timeout?A bit of background:
We built a
Manager
extension with circuit breaker functionality, usingRequest.getConnectionWrapper
to enforce a connection timeout different from the configurable response timeout. With the API change from http-client 0.4.x → 0.5.xgetConnectionWrapper
was dropped, therefore we can no longer support this feature in this way. Instead of bringing backRequest.getConnectionWrapper
we believe addingManagerSettings.managerConnectionTimeout
would probably benefit more people.The text was updated successfully, but these errors were encountered: