Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update SocketReader::ReadSome SocketError when socket closed
Update SocketInitiatorThread::ReadSome SocketError when socket closed If 0 bytes are read it means the socket has been shutdown not reset. Had this issue in a production system reporting "Connection reset by peer" (the error message for SocketError.SocketReset), but using wireshark no RST packet was seen. However we did see the FIN and FIN,ACK packets which means the socket was being deliberately shutdown. Turned out the venue had a maintenance job that shutdown the network connections. Tldr; Setting to SocketError.Shutdown is the correct message for this scenario.
- Loading branch information