- remove FD_SETSIZE check since the fd is only ever poll()ed not select()ed... prompted by Jeff Trawick. --- httpd-2.0.48/os/unix/unixd.c.fdsetsize +++ httpd-2.0.48/os/unix/unixd.c @@ -501,28 +501,12 @@ { apr_socket_t *csd; apr_status_t status; - int sockdes; *accepted = NULL; status = apr_accept(&csd, lr->sd, ptrans); if (status == APR_SUCCESS) { *accepted = csd; - apr_os_sock_get(&sockdes, csd); - if (sockdes >= FD_SETSIZE) { - ap_log_error(APLOG_MARK, APLOG_WARNING, 0, NULL, - "new file descriptor %d is too large; you probably need " - "to rebuild Apache with a larger FD_SETSIZE " - "(currently %d)", - sockdes, FD_SETSIZE); - apr_socket_close(csd); - return APR_EINTR; - } -#ifdef TPF - if (sockdes == 0) { /* 0 is invalid socket for TPF */ - return APR_EINTR; - } -#endif - return status; + return APR_SUCCESS; } if (APR_STATUS_IS_EINTR(status)) {