summaryrefslogtreecommitdiff
path: root/Bus/Ivy/BufferedSocket.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Bus/Ivy/BufferedSocket.cxx')
-rw-r--r--Bus/Ivy/BufferedSocket.cxx14
1 files changed, 9 insertions, 5 deletions
diff --git a/Bus/Ivy/BufferedSocket.cxx b/Bus/Ivy/BufferedSocket.cxx
index 0265e3b..03a2704 100644
--- a/Bus/Ivy/BufferedSocket.cxx
+++ b/Bus/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;
}
}