-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
David Birnbaum writes: > I think there's some confusion on this. > > In SunOS 4.X, this is a parameter you have to recompile the kernel for. > If you're running 4.X, that's a real bummer. There are several good > references on changing this parameter (the one below looks wildly > dangerous, but what the hey; that's what Perl is for), good luck. Very unlikely you're running 4.x ;) > In Solaris < 2.5.1 or so, this controlled by the ndd tunable > tcp_conn_req_max. In > 2.5.1, this was split into tcp_conn_req_max_q and > tcp_conn_req_max_q0 to survive those nasty syn attacks. > tcp_conn_req_max_q is the one you want, which refers to "real" queued > connections. I think it defaults to 128 or 1024, depending on what 2.X > you are running. It can be read or retuned realtime as root: > > ndd -get /dev/tcp tcp_conn_req_max_q > > and -set to change. There, I knew it was easy enough ;) -- that's what you want. > listen() lets one set the actual queue on the particular socket of > interest. See man -s3socket listen for the gory details. If one uses the > Perl IO::Socket::INET, the "Listen" parameter allows you to specify the > queue up to the max that the kernel is currently running. The more > primitive Socket libraries don't seem to be so kind. I actually don't > know what the default would be in perl in the older libraries. > > Of course, this queue is per socket, not per process listening. So, if 10 > forked daemons are listening on a socket for connections, that's not > 10*Listen, it's simply Listen for the total number in the queue. > > There's an excellent document for lots of Solaris-based tuning worth > reading: > > http://www.sean.de/Solaris/soltune.htm - --j. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Exmh CVS iD8DBQFAPZLwQTcbUG5Y7woRAnvkAKDed9tnlPHkkN9J+py4U08Q2apLFQCfRe6t BgjyMLmC//t4dUSHcDMqP/g= =SOrp -----END PGP SIGNATURE-----
