Conversation
3adcb47 to
7a36c2a
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #546 +/- ##
==========================================
+ Coverage 81.57% 81.87% +0.30%
==========================================
Files 46 46
Lines 3191 3244 +53
==========================================
+ Hits 2603 2656 +53
- Misses 385 387 +2
+ Partials 203 201 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@sean-bauer @rg0now @adrianosela I'm going to keep this a draft until we decide what to do with TCP, I think our options are: either add a dial/connection-factory in config so AllocateTCP() can re-connect, or keep this UDP-only for now and have TCP either fail on 300 or return the alternate addr so callers can retry with a new client. |
|
Interesting. Kept me a while to think through. One option is to change the The second option is to rely on the caller to track the alternates and implement the retry logic. I mean we may want to fail on 300 AND return the alternate addr in the err so callers can retry with a new client. This looks simpler, at the cost of the caller having to create multiple clients/connections until they succeed (which sux). I don't think we can make the same client reusable for multiple The third option is implement the redirect logic for UDP and fail on 300 for TCP. I guess this is what you're doing here, right? |
Description
This is a draft for supporting alternate addresses, this works for UDP.
two things:
Reference issue
Fixes #544