NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ENOBUFS when setting SO_SNDBUF



On Sun, Oct 10, 2010 at 10:22:01AM +0200, Emmanuel Dreyfus wrote:
> Thor Lancelot Simon <tls%panix.com@localhost> wrote:
> 
> > Also, setting this limit by hand disables automatic socket buffer sizing
> > for TCP sockets, which is a thing worth keeping in mind.
> 
> You mean that if I do not set SO_SNDBUF, it willinrease automatically
> until it reaches net.inet.tcp.sendbuf_max?

That's the idea.  There is currently a problem with RTT estimation which
may make it increase much more slowly than you'd like, so for very short
connections you may still want to set it by hand.  Absent that bug,
however, you would no longer want to set SO_SNDBUF or SO_RCVBUF for
applications targetted at platforms (Linux, FreeBSD, NetBSD at least)
that autosize the socket buffer in this way.

Thor


Home | Main Index | Thread Index | Old Index