Skip to content

Commit 07fcb76

Browse files
author
Miguel Labayen
committed
Handle SocketError.Shutdown.
Signed-off-by: Miguel Labayen <[email protected]>
1 parent de50a21 commit 07fcb76

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/NetMQ/Core/Transports/StreamEngine.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,8 @@ private static int EndWrite(SocketError socketError, int bytesTransferred)
10491049
socketError == SocketError.ConnectionAborted ||
10501050
socketError == SocketError.TimedOut ||
10511051
socketError == SocketError.ConnectionReset ||
1052-
socketError == SocketError.AccessDenied)
1052+
socketError == SocketError.AccessDenied ||
1053+
socketError == SocketError.Shutdown)
10531054
return -1;
10541055

10551056
throw NetMQException.Create(socketError);

0 commit comments

Comments
 (0)