mirror of https://github.com/grpc/grpc-go.git
xds/client: send connection errors to all watchers (#5054)
This commit is contained in:
parent
c18e2a2883
commit
a32d2778f3
|
|
@ -295,6 +295,21 @@ func (pb *Pubsub) NewConnectionError(err error) {
|
|||
pb.mu.Lock()
|
||||
defer pb.mu.Unlock()
|
||||
|
||||
for _, s := range pb.ldsWatchers {
|
||||
for wi := range s {
|
||||
wi.newError(xdsresource.NewErrorf(xdsresource.ErrorTypeConnection, "xds: error received from xDS stream: %v", err))
|
||||
}
|
||||
}
|
||||
for _, s := range pb.rdsWatchers {
|
||||
for wi := range s {
|
||||
wi.newError(xdsresource.NewErrorf(xdsresource.ErrorTypeConnection, "xds: error received from xDS stream: %v", err))
|
||||
}
|
||||
}
|
||||
for _, s := range pb.cdsWatchers {
|
||||
for wi := range s {
|
||||
wi.newError(xdsresource.NewErrorf(xdsresource.ErrorTypeConnection, "xds: error received from xDS stream: %v", err))
|
||||
}
|
||||
}
|
||||
for _, s := range pb.edsWatchers {
|
||||
for wi := range s {
|
||||
wi.newError(xdsresource.NewErrorf(xdsresource.ErrorTypeConnection, "xds: error received from xDS stream: %v", err))
|
||||
|
|
|
|||
Loading…
Reference in New Issue