Im running a busy web-server and clients are getting lots of Connection Refused messages… Why?
This may be due, most probably, by the small size of A/UX’s listen() backlog queue. This queue is basically the number of pending connections listen will allow. Under A/UX, this value (known as SOMAXCONN) is a measly 5. Since Netscape, for example, send 4 connection-requests per connect, you can see how you would over-reach the queue quickly if your server is busy. Jim Jagielski (jim✉jaguNET.com) has written a small shell-script that uses ‘adb’ to patch the kernel ‘bnet’ module to increase the queue limit from 5 to 32.
This may be due, most probably, by the small size of A/UX’s listen() backlog queue. This queue is basically the number of pending connections listen will allow. Under A/UX, this value (known as SOMAXCONN) is a measly 5. Since Netscape, for example, send 4 connection-requests per connect, you can see how you would over-reach the queue quickly if your server is busy. Jim Jagielski (jim@jaguNET.com) has written a small shell-script that uses ‘adb’ to patch the kernel ‘bnet’ module to increase the queue limit from 5 to 32. It’s available on jagubox.gsfc.nasa.
Related Questions
- Even though I have lots of swap space and only a little bit is being used, I still get a lot of messages saying that my swap space is running low. Whats the buzz?
- Why is it that System Monitor and other CPU monitors indicate that my CPU is 100% busy when running CPU Cool?
- Im running a busy web-server and clients are getting lots of Connection Refused messages... Why?