diff --git a/QuickFIXn/SocketInitiatorThread.cs b/QuickFIXn/SocketInitiatorThread.cs index 5b3014b7e..9277cb1cf 100755 --- a/QuickFIXn/SocketInitiatorThread.cs +++ b/QuickFIXn/SocketInitiatorThread.cs @@ -151,7 +151,7 @@ protected int ReadSome(byte[] buffer, int timeoutMilliseconds) int bytesRead = stream_.EndRead(request); if (0 == bytesRead) - throw new SocketException(System.Convert.ToInt32(SocketError.ConnectionReset)); + throw new SocketException(System.Convert.ToInt32(SocketError.Shutdown)); return bytesRead; } diff --git a/QuickFIXn/SocketReader.cs b/QuickFIXn/SocketReader.cs index 641c12d43..cbbd17cc5 100755 --- a/QuickFIXn/SocketReader.cs +++ b/QuickFIXn/SocketReader.cs @@ -97,7 +97,7 @@ protected virtual int ReadSome(byte[] buffer, int timeoutMilliseconds) int bytesRead = stream_.EndRead(request); if (0 == bytesRead) - throw new SocketException(System.Convert.ToInt32(SocketError.ConnectionReset)); + throw new SocketException(System.Convert.ToInt32(SocketError.Shutdown)); return bytesRead; }