hybernate send/receive threads when there are enobuf problems

This commit is contained in:
Jeff Hill
2004-01-22 19:17:32 +00:00
parent 5b1507e15e
commit 3c8efba3c4

View File

@@ -226,6 +226,14 @@ unsigned tcpiiu::sendBytes ( const void *pBuf,
continue;
}
if ( localError == SOCK_ENOBUFS ) {
errlogPrintf (
"CAC: system low on network buffers "
"- send retry in 15 seconds\n" );
epicsThreadSleep ( 15.0 );
continue;
}
if (
localError != SOCK_EPIPE &&
localError != SOCK_ECONNRESET &&
@@ -294,6 +302,14 @@ void tcpiiu::recvBytes (
if ( localErrno == SOCK_EINTR ) {
continue;
}
if ( localErrno == SOCK_ENOBUFS ) {
errlogPrintf (
"CAC: system low on network buffers "
"- receive retry in 15 seconds\n" );
epicsThreadSleep ( 15.0 );
continue;
}
stat.bytesCopied = 0u;
stat.circuitState = swioPeerAbort;