forked from envoyproxy/go-control-plane
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Linear cache] Enable SotwStableVersion subscription resumption only …
…when using wildcard watches (#16) During testing with grpc-xds, it was noticed that a specific behavior on the client side is not compatible with sotw subscription resumptions. When the last channel is closed, the client disconnects from the control-plane. If the same channel gets reopened later on, the connection is re-established with the same resource subscription and the last version from before is provided. In this case the control-plane currently does not return the response as the version does match, whereas grpc expects the control-plane to reply as it considers it as a "desubscription then resubscription event", which should send the resource again. In the context of wildcard watches this is not an issue, so the behavior is kept. More context on the grpc-xds discussions in this [thread](grpc/grpc-go#7013 (comment)) Signed-off-by: Valerian Roche <valerian.roche@datadoghq.com>
- Loading branch information
1 parent
35df9d3
commit 19f9668
Showing
2 changed files
with
42 additions
and
35 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