On Tue, 2003/01/14 at 02:51:03 -0800, Terry Lambert wrote:
> Martin Blapp wrote:
> > Can you commit this ? The fix looks appropriate, but the manpage should
> > also be changed to reflect the change.
> > 
> > ERRORS
> >      Listen() will fail if:
> > 
> >      [EBADF]            The argument s is not a valid descriptor.
> >      [ENOTSOCK]         The argument s is not a socket.
> >      [EOPNOTSUPP]       The socket is not of a type that
> >                         supports the operation listen().
> >      [EINVAL]           Listen() has been already called on the socket.
> > 
> > Any objections from others ?
> 
> It seems to me that calling listen() on a socket to change the
> listen queue depth is a reasonable thing to do; this is true
> before it's bound, after it's bound, before listen() has been
> called on it, and after listen() has been called on it once (or
> more).
> 
> Am I missing something here?  Is there a good technical reason
> to not permit an application to change the listen queue depth?
> Or is there some way that an application can do this, using a
> call other than listen()?
> 
> That it causes a panic when the SYN cache is enabled isn't really
> a technical reason, it's a circumstantial reason.

The manpage change does not reflect the change in the patch :)
It should be:

        [EINVAL]        The socket is connected.

        - Thomas

-- 
Thomas Moestl <[EMAIL PROTECTED]> http://www.tu-bs.de/~y0015675/
              <[EMAIL PROTECTED]> http://people.FreeBSD.org/~tmm/
PGP fingerprint: 1C97 A604 2BD0 E492 51D0  9C0F 1FE6 4F1D 419C 776C

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

Reply via email to