Skip to content

Commit

Permalink
Better client handling when the server connection goes away.
Browse files Browse the repository at this point in the history
  • Loading branch information
antiduh committed Jul 8, 2014
1 parent 585366a commit eee7b16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion TestProtocol/CustomConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ private void ReadLoop()
if( e.SocketErrorCode == SocketError.ConnectionAborted ||
e.SocketErrorCode == SocketError.Interrupted ||
e.SocketErrorCode == SocketError.OperationAborted ||
e.SocketErrorCode == SocketError.Shutdown )
e.SocketErrorCode == SocketError.Shutdown ||
e.SocketErrorCode == SocketError.ConnectionReset )
{
// Shutting down.
break;
Expand Down

0 comments on commit eee7b16

Please sign in to comment.