netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vlad Yasevich <vladislav.yasevich@hp.com>
To: David Miller <davem@davemloft.net>
Cc: rick.jones2@hp.com, gerrit@erg.abdn.ac.uk,
	netdev@vger.kernel.org, weid@np.css.fujitsu.com
Subject: Re: [NET]: Please revert disallowing zero listen queues
Date: Fri, 09 Mar 2007 14:14:35 -0500	[thread overview]
Message-ID: <45F1B21B.7010402@hp.com> (raw)
In-Reply-To: <20070306.111142.07639258.davem@davemloft.net>

David Miller wrote:
> From: Rick Jones <rick.jones2@hp.com>
> Date: Tue, 06 Mar 2007 10:54:00 -0800
> 
>>> So we're not "disallowing" a backlog argument of zero to
>>> listen().  We'll accept that just fine, the only thing that
>>> happens is that you'll get what you ask for, that being
>>> no connections :-)
>> I'm not sure where HP-UX inherited the 0 = 1 bit - perhaps from BSD, nor 
>> am I sure there is official chapter and verse, but:
>>
>> <excerpt>
>> backlog is limited to the range of 0 to SOMAXCONN, which is 	defined in 
>> <sys/socket.h>.  SOMAXCONN is currently set to 4096.  If any other 
>> value is specified, the system automatically assigns the closest value 
>>      within the range.  A backlog of 0 specifies only 1 pending 
>> connection      is allowed at any given time.
>> </excerpt>
>>
>> I don't have a Solaris, BSD or AIX manpage for listen handy to check 
>> them but would not be surprised to see they are similar.
> 
> Ok, that seals the deal for me, I'll revert the change :)

Ahh, crap.  Even Posix wiesel-words around this issue:

> A backlog argument of 0 may allow the socket to accept connections, in which case
> the length of the listen queue may be set to an implementation-defined minimum value.

(from http://www.opengroup.org/onlinepubs/009695399/functions/listen.html)

No, to go and fix the SCTP spec....

-vlad

      reply	other threads:[~2007-03-09 19:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-06 13:32 [NET]: Please revert disallowing zero listen queues Gerrit Renker
2007-03-06 18:37 ` David Miller
2007-03-06 18:45   ` David Miller
2007-03-06 18:54   ` Rick Jones
2007-03-06 19:11     ` David Miller
2007-03-09 19:14       ` Vlad Yasevich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45F1B21B.7010402@hp.com \
    --to=vladislav.yasevich@hp.com \
    --cc=davem@davemloft.net \
    --cc=gerrit@erg.abdn.ac.uk \
    --cc=netdev@vger.kernel.org \
    --cc=rick.jones2@hp.com \
    --cc=weid@np.css.fujitsu.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).