atom feed4 messages in org.apache.httpd.dev[PATCH] ENOBUFS is not a shooting off...
FromSent OnAttachments
Bill StoddardJan 15, 2002 10:59 am 
Jeff TrawickJan 15, 2002 11:42 am 
Bill StoddardJan 15, 2002 1:25 pm 
Doug MacEachernJan 16, 2002 9:36 am 
Subject:[PATCH] ENOBUFS is not a shooting offense.
From:Bill Stoddard (bi@wstoddard.com)
Date:Jan 15, 2002 10:59:24 am
List:org.apache.httpd.dev

Apache on HPUX will return ENOBUFS when resources are low. When ENOBUFS is
returned, the TCP connection has whacked the connection before the call to accept() completed.
This patch will enable the child process to stay up and running.

This patch enables Apache on HPUX to more gracefully handle low resource
conditions. Any concerns with committing this?

Bill

Index: http_main.c =================================================================== RCS file: /home/cvs/apache-1.3/src/main/http_main.c,v retrieving revision 1.567 diff -u -r1.567 http_main.c --- http_main.c 14 Jan 2002 04:49:44 -0000 1.567 +++ http_main.c 15 Jan 2002 18:53:47 -0000 @@ -4389,6 +4389,12 @@ #ifdef ENETUNREACH case ENETUNREACH: #endif +#ifdef ENOBUFS + /* HPUX 11 generates ENOBUFS when resources are low. + * Ignore ENOBUFS rather than taking down the child + */ + case ENOBUFS: +#endif break; #ifdef ENETDOWN case ENETDOWN: