mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-28 01:04:41 +08:00
Remove broken pipe error code feom win build
This commit is contained in:
parent
141b0f99a4
commit
62f53b855b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user