Skip to content

Commit ee93a45

Browse files
authored
Merge pull request #912 from milabtom/master
Handle SocketError.Shutdown
2 parents db94774 + f767bda commit ee93a45

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

AUTHORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ Contributors
2525
* Calin Pirtea — [@pcalin](https://github.com/pcalin)
2626
* Osiris Pedroso — [@opedroso](https://github.com/opedroso)
2727
* Mike Miller — [@mikepmiller](https://github.com/mikepmiller)
28+
* Miguel Labayen — [@milabtom](https://github.com/milabtom)

src/NetMQ/Core/Transports/StreamEngine.cs

Lines changed: 2 additions & 1 deletion
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)