1245. [bug] Treat ENOBUFS, ENOMEM and ENFILE as soft errors for

accept().

HPUX 11.11 returns ENOBUFS when the TCP connecting is closed before accept.
ENOMEM and ENFILE were also recommend by HP to be treated as soft for accept().
This commit is contained in:
Mark Andrews 2002-04-03 05:41:20 +00:00
parent 2b1c71b134
commit 5d26560e2b
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,6 @@
1245. [bug] Treat ENOBUFS, ENOMEM and ENFILE as soft errors for
accept().
1244. [bug] Receiving a TCP message from a blackhole address would
prevent further messages being received over that
interface.

View file

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: socket.c,v 1.223 2002/04/02 04:36:50 marka Exp $ */
/* $Id: socket.c,v 1.224 2002/04/03 05:41:20 marka Exp $ */
#include <config.h>
@ -1745,6 +1745,9 @@ internal_accept(isc_task_t *me, isc_event_t *ev) {
if (SOFT_ERROR(errno))
goto soft_error;
switch (errno) {
case ENOBUFS:
case ENFILE:
case ENOMEM:
case ECONNRESET:
case ECONNABORTED:
case EHOSTUNREACH: