Skip to content

Commit b076302

Browse files
committed
fix: use io.EOF error when no backend connections are available
This better mimicks gRPC behavior when attempting to send on a connection when receiver closes the connection. Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
1 parent 82daca0 commit b076302

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proxy/handler_one2many.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ func (s *handler) forwardServerToClientsMulti(src grpc.ServerStream, destination
315315
}
316316

317317
if liveDestinations == 0 {
318-
ret <- errors.New("no backend connections to forward to are available")
318+
ret <- io.EOF
319319

320320
return
321321
}

0 commit comments

Comments
 (0)