wrowe 2002/05/31 01:00:23
Modified: flood flood_net.c
Log:
Well if this is bogus for solaris, seems a solaris hacker had better
get hacking on apr. Not like there isn't a solaris hacker with apr
commit privs on the httpd-test subproject :-)
Revision Changes Path
1.9 +2 -1 httpd-test/flood/flood_net.c
Index: flood_net.c
===================================================================
RCS file: /home/cvs/httpd-test/flood/flood_net.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- flood_net.c 27 Mar 2002 21:38:03 -0000 1.8
+++ flood_net.c 31 May 2002 08:00:23 -0000 1.9
@@ -84,11 +84,12 @@
close_socket(fs);
return NULL;
}
- else if (rv == EADDRNOTAVAIL || rv == EAGAIN)
+ else if (APR_STATUS_IS_EAGAIN(rv))
{
/* We have run out of ports available due to TIME_WAIT
exhaustion.
* Sleep for four minutes, and try again.
* Note: Solaris returns EADDRNOTAVAIL, Linux returns EAGAIN.
+ * XXX: Then APR'IZE THIS ALREADY
*/
apr_sleep(4 * 60 * APR_USEC_PER_SEC);
return open_socket(pool, r);