httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Akins <bak...@web.turner.com>
Subject FD_SETSIZE comparison
Date Tue, 06 Jan 2004 14:53:47 GMT
Call me stupid, put why in various places does Apache do things like this:
if (csd >= 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)",
                      csd, FD_SETSIZE);
         apr_socket_close(sock);
         return;
     }

On linux, at least, FD_SETSIZE is fairly low (1024), yet the actually 
max file descriptors can be much, much higher (we have thousands per 
process with squid).


Is this just not true elsewhere?  Can someone explain?

-- 
Brian Akins
Senior Systems Engineer
CNN Internet Technologies

Mime
View raw message