summaryrefslogtreecommitdiff
path: root/Ivy
diff options
context:
space:
mode:
Diffstat (limited to 'Ivy')
-rw-r--r--Ivy/BufferedSocket.cxx14
1 files changed, 9 insertions, 5 deletions
diff --git a/Ivy/BufferedSocket.cxx b/Ivy/BufferedSocket.cxx
index 0265e3b..03a2704 100644
--- a/Ivy/BufferedSocket.cxx
+++ b/Ivy/BufferedSocket.cxx
@@ -120,11 +120,15 @@ void CBufferedSocket::OnSend( int nErrorCode )
else
{ // erreur
int err = this->GetLastError();
- if ( err == WSAEWOULDBLOCK ) // si la file est pleine on sort en silence !
- {
- }
- else
- TRACE("CBufferedSocket::OnWakeup error %d Sending buffer %s \n",err,msg);
+ switch ( err ){
+ case WSAEWOULDBLOCK: // si la file est pleine on sort en silence !
+ break;
+ case WSAECONNABORTED: // broken pipe on sort en silence
+ break;
+ default:
+ TRACE("CBufferedSocket::OnWakeup error %d Sending buffer %s \n",err,msg.c_str());
+ break;
+ }
break;
}
}