Skip to content

Commit

Permalink
Handle SocketError.Shutdown.
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Labayen <[email protected]>
  • Loading branch information
Miguel Labayen committed Jul 2, 2020
1 parent de50a21 commit 07fcb76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/NetMQ/Core/Transports/StreamEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,8 @@ private static int EndWrite(SocketError socketError, int bytesTransferred)
socketError == SocketError.ConnectionAborted ||
socketError == SocketError.TimedOut ||
socketError == SocketError.ConnectionReset ||
socketError == SocketError.AccessDenied)
socketError == SocketError.AccessDenied ||
socketError == SocketError.Shutdown)
return -1;

throw NetMQException.Create(socketError);
Expand Down

0 comments on commit 07fcb76

Please sign in to comment.