-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
provide ability to request a fresh connection #2605
Copy link
Copy link
Open
Labels
A-clientArea: client.Area: client.B-rfcBlocked: More comments would be useful in determine next steps.Blocked: More comments would be useful in determine next steps.C-featureCategory: feature. This is adding a new feature.Category: feature. This is adding a new feature.
Metadata
Metadata
Assignees
Labels
A-clientArea: client.Area: client.B-rfcBlocked: More comments would be useful in determine next steps.Blocked: More comments would be useful in determine next steps.C-featureCategory: feature. This is adding a new feature.Category: feature. This is adding a new feature.
Is your feature request related to a problem? Please describe.
Certain retry behaviors specify a fresh connection (and sometimes a full DNS re-lookup) to direct traffic away from what might be a problematic host. I need the ability to somehow mark a request to Hyper as not reusing a connection that may be in the pool
Describe the solution you'd like
I can imagine a few ways the API might be structured, but in general I'd like some way as marking a request as "needs fresh connection", potentially giving a reference to the old connection / response which was problematic.
Describe alternatives you've considered
I could rebuild the entire client & pool when a request fails in a way that necessitates a re-lookup. However, it seems like that may cause unnecessary churn on the client side.
Additional context
https://docs.aws.amazon.com/AmazonS3/latest/userguide/optimizing-performance-design-patterns.html#optimizing-performance-timeouts-retries