-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upstream client: Handle recv() blocked scenarios (#223)
There are two error scenarios currently that leads to cache drifts between the management server and xds-relay. 1. There is a bug where the stream is stuck indefinitely if the send chan is closed unexpectedly. The recv routine stays open and the waitgroup never completes, blocking retries. 2. If the response receiver channel for `recv()` is blocked, the upstream client is blocked from sending ACKs back to the management server. Signed-off-by: Jess Yuen <[email protected]>
- Loading branch information
1 parent
2be6003
commit 22cdc4f
Showing
2 changed files
with
33 additions
and
10 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