Turn invalid max-client-connections values into fatal errors
authorFabian Keil <fk@fabiankeil.de>
Sun, 8 May 2016 10:46:55 +0000 (10:46 +0000)
committerFabian Keil <fk@fabiankeil.de>
Sun, 8 May 2016 10:46:55 +0000 (10:46 +0000)
commit41ae040b041e26c2e2b975120a6f1a2046c660f5
tree138e455aee5ee38f8b4a266181701694e0969352
parent67a4fa138becd0e2fe5adca3383e4efa03472c93
Turn invalid max-client-connections values into fatal errors

Use FD_SETSIZE/2 as upper limit because Privoxy needs two
sockets to serve client connections that need forwarding.

Ignore the fact that the first three file descriptors
are usually set to /dev/null, one is used for logging
and yet another file descriptor is required to load
config files.

Make an exception for _WIN32 as its select() is documented
to handle file descriptors above FD_SETSIZE just fine.
loadcfg.c