Just curious:
I noticed that FreeBSD and NetBSD will give you a 50% longer listen queue
than what was requested with the second argument of listen(2). (You get
trunc(N*3/2)+1 for backlog=N). Thus with the default SOMAXCONN of 128 (this
is settable with a sysctl) we actually have a listen queue of 193 connections.
(OpenBSD dropped the "divide by two" and gives you 200% more than requested.)
Obviously this doesn´t break anything - it has been this way at least since
BSD 4.4 Lite - but it makes me curious. Does anybody know why this was 
implemented other than it is documented?
Btw, Linux counts exactly (gives 2*N+1) but since 2.2 only completed
connections are counted.

TIA,
  Martin
 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to