-
Notifications
You must be signed in to change notification settings - Fork 507
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FABG-860] fix dial ctx error using same context
When a server is down and we do DialContext using the same context to dial multiple servers, the call to the failing server will cause a 'context deadline exceeded' for all subsquent calls using the same context. the solution to this problem is to create a new child context (with the original one as parent) having its own dial timeout for each connection and the original (parent) context should never timeout. Change-Id: I31ad02077981dc4c8537293c107f1526cb76947d Signed-off-by: Baha Shaaban <[email protected]>
- Loading branch information
Baha Shaaban
committed
May 14, 2019
1 parent
48bb0d1
commit 4def0f9
Showing
5 changed files
with
200 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.