From 62f53b855bedd2f4bca2546de3db29e6c9ea6e6a Mon Sep 17 00:00:00 2001 From: Sergey Yagovtsev Date: Sat, 19 Nov 2016 19:16:19 +0300 Subject: [PATCH] Remove broken pipe error code feom win build --- src/easy_socket.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/easy_socket.cpp b/src/easy_socket.cpp index d5fc524..06d66f2 100644 --- a/src/easy_socket.cpp +++ b/src/easy_socket.cpp @@ -117,9 +117,6 @@ void EasySocket::checkResult(int result) const int CONNECTION_ABORTED = WSAECONNABORTED; const int CONNECTION_RESET = WSAECONNRESET; const int CONNECTION_IN_PROGRESS = WSAEINPROGRESS; - - // TODO: check for proper WSAE code. WSAECONNABORTED already used by CONNECTION_ABORTED. Replaced by WSAENETRESET. // by Victor Zarubkin on 2016/11/19 - const int CONNECTION_BROKEN_PIPE = WSAENETRESET;// WSAECONNABORTED; #else error_code = errno; const int CONNECTION_ABORTED = ECONNABORTED; @@ -133,8 +130,8 @@ void EasySocket::checkResult(int result) { case CONNECTION_ABORTED: case CONNECTION_RESET: - case CONNECTION_BROKEN_PIPE: #ifndef _WIN32 + case CONNECTION_BROKEN_PIPE: case CONNECTION_ENOENT: #endif m_state = CONNECTION_STATE_DISCONNECTED;