marc 98/07/15 11:33:13
Modified: src/support ab.c Log: Use ap_select instead of select in ab, and replace hardcoded 256 with FD_SETSIZE. Should really dynamically track the highest descriptor and use that. PR: 2625 Submitted by: Richard Lloyd <[EMAIL PROTECTED]>, Marc Slemko Revision Changes Path 1.10 +1 -1 apache-1.3/src/support/ab.c Index: ab.c =================================================================== RCS file: /export/home/cvs/apache-1.3/src/support/ab.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- ab.c 1998/07/13 11:32:57 1.9 +++ ab.c 1998/07/15 18:33:12 1.10 @@ -551,7 +551,7 @@ /* Timeout of 30 seconds. */ timeout.tv_sec = 30; timeout.tv_usec = 0; - n = select(256, &sel_read, &sel_write, &sel_except, &timeout); + n = ap_select(FD_SETSIZE, &sel_read, &sel_write, &sel_except, &timeout); if (!n) { printf("\nServer timed out\n\n"); exit(1);