Re: file descriptors for squid using linux 2.2.1

From: Martin Hamilton <martin@dont-contact.us>
Date: Wed, 24 Feb 1999 17:47:17 +0000

-----BEGIN PGP SIGNED MESSAGE-----

David Luyer writes:

| Ugh! What a horrible suggestion (that you could just comment it out),
| unless you're not using an fd_set anywhere (eg, using poll(), not using
| delay_pools, etc - I don't know all the places it might be used), this would
| cause a random memory scribble. FD_SETSIZE is the number of bits in the
| fd_set. If you let file descriptors grow beyond it, then when bits are
| toggled with FD_SET et al, this will cause random problems.

Well, I did say "I'm not sure what the best approach is to fix it" !

Michael's version of this is much more complete, but requires oodles
of changes to the various headers which try to put a value to
FD_SETSIZE. This is still only a partial answer, since the value of
FD_SETSIZE doesn't change when you change the hard upper limit on the
number of file descriptors.

Time to buy Alan beer and pizza :-)

Martin

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv

iQCVAwUBNtQ7ItZdpXZXTSjhAQHYWwP/UXL5vBzsdDmZMNnsbjTUx7YWGPYZJ0qi
xx7B8M52RS7GO6qR1v0IlYCP/HwsJ0OGrNM+boqqyjHchz8hvg1JrSw1yPS2t4iJ
AR6gSWY/Dj3FXXhzcI+ZxAwj7fdb6RnoNc/7+kMEGwbMTZdUxuR2uRsmzA/YLB4A
6ZlmbmojfJc=
=QX3P
-----END PGP SIGNATURE-----
Received on Wed Feb 24 1999 - 10:48:40 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:44:42 MST