containerd / ttrpc

GRPC for low-memory environments
Apache License 2.0
536 stars 78 forks source link

return ErrClosed if read: connection reset by peer #53

Closed fuweid closed 4 years ago

fuweid commented 4 years ago

When call server.Close(), server will close all listener and notify flighting-connection to shutdown. Connections are closed asynchronously. In TestClientEOF, client can send request into closing-connection. But the read for reply will return error if the closing-connection is shutdown.

In this case, we should filter error for client side about read: connection reset by peer.

Signed-off-by: Wei Fu fuweid89@gmail.com

crosbymichael commented 4 years ago

LGTM