mirror of
https://github.com/apache/httpd.git
synced 2025-07-25 17:01:22 +00:00
Unix MPMs: Stop dropping connections when the file descriptor
is at least FD_SETSIZE. That isn't a problem for most users (since poll() is widespread). On old boxes where select() must be used by APR, APR needs to fail operations that don't work with such fds. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102419 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@ -508,15 +508,6 @@ AP_DECLARE(apr_status_t) unixd_accept(void **accepted, ap_listen_rec *lr,
|
||||
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;
|
||||
|
Reference in New Issue
Block a user