-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Labels
bugSomething isn't workingSomething isn't working
Description
When client.Close is called, the gRPC connection gets closed, and the stream.Recv() call here returns a gRPC internal error ErrConnClosing, which is not considered a grace close, hence causes a log.Fatalf().
2021/05/14 13:07:05 error in subscription stream: rpc error: code = Unavailable desc = transport is closing
go-threads/net/api/client/client.go
Lines 297 to 307 in 5d09258
| resp, err := stream.Recv() | |
| if err == io.EOF { | |
| return | |
| } | |
| if err != nil { | |
| stat := status.Convert(err) | |
| if stat.Code() != codes.Canceled { | |
| log.Fatalf("error in subscription stream: %v", err) | |
| } | |
| return | |
| } |
This shouldn't be considered a fatal error, but maybe more importantly, provide a way to signal the loop to return immediately?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working