Skip to content

Commit

Permalink
ofxNetwork: disconect on EABORTCONN
Browse files Browse the repository at this point in the history
  • Loading branch information
arturoc committed Nov 10, 2011
1 parent fa65aff commit 736021c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions addons/ofxNetwork/src/ofxNetworkUtils.h
Expand Up @@ -33,6 +33,7 @@
#define EALREADY WSAEALREADY
#define ENOPROTOOPT WSAENOPROTOOPT
#define EMSGSIZE WSAEMSGSIZE
#define ECONNABORTED WSAECONNABORTED
#endif


Expand Down
2 changes: 1 addition & 1 deletion addons/ofxNetwork/src/ofxTCPManager.cpp
Expand Up @@ -274,7 +274,7 @@ int ofxTCPManager::SendAll(const char* pBuff, const int iSize)
if (GetTickCount() - timestamp > m_dwTimeoutSend * 1000) return SOCKET_TIMEOUT;
}

if(err == EPIPE || err == ECONNRESET){ Close(); return 0; }
if(err == EPIPE || err == ECONNRESET || err == ECONNABORTED ){ Close(); return 0; }

return ret==-1 && bytesleft == iSize?SOCKET_ERROR:total;
}
Expand Down

0 comments on commit 736021c

Please sign in to comment.