0
0
mirror of https://github.com/yse/easy_profiler.git synced 2025-01-14 08:37:55 +08:00

Check aborted connection while capturing

This commit is contained in:
Sergey Yagovtsev 2016-11-18 23:12:29 +03:00
parent b1e6bef056
commit c08c870b58

View File

@ -124,6 +124,7 @@ void EasySocket::checkResult(int result)
const int CONNECTION_RESET = ECONNRESET;
const int CONNECTION_IN_PROGRESS = EINPROGRESS;
const int CONNECTION_BROKEN_PIPE = EPIPE;
const int CONNECTION_ENOENT = ENOENT;
#endif
switch(error_code)
@ -131,6 +132,9 @@ void EasySocket::checkResult(int result)
case CONNECTION_ABORTED:
case CONNECTION_RESET:
case CONNECTION_BROKEN_PIPE:
#ifndef _WIN32
case CONNECTION_ENOENT:
#endif
m_state = CONNECTION_STATE_DISCONNECTED;
break;
case CONNECTION_IN_PROGRESS: