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.
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