Skip to content

Commit

Permalink
Retry the grpc connection when there's an error
Browse files Browse the repository at this point in the history
Signed-off-by: alekhya.kondapuram <[email protected]>
  • Loading branch information
akondapuram committed Feb 9, 2024
1 parent 9901a9b commit 18f10e1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/provider/xds_grpc_sotw_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,7 @@ func (p *XdsGrpcSotwProvider) watchConfigs() {
resp, err := p.adsClient.Fetch()
if err != nil {
logger.Errorf("Failed to receive configuration from xDS Management Server: %s", err.Error())
if sotw.IsConnError(err) {
p.retryGrpcConn()
return
}
p.retryGrpcConn()
p.adsClient.Nack(err.Error())
} else {
logger.Tracef("Response received from xDS Management Server: %v", resp)
Expand Down

0 comments on commit 18f10e1

Please sign in to comment.