Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 Sep 1996 20:08:55 -0700
From:      David Greenman <dg@root.com>
To:        shadows@whitefang.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Buffer limit on socket 
Message-ID:  <199609080308.UAA14104@root.com>
In-Reply-To: Your message of "Sat, 07 Sep 1996 17:03:40 %2B0300." <Pine.NEB.3.95.960907165923.1439H-100000@broken.whitefang.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
>I just had it wait for packets to arrive and then shoot out again. Seemed
>to work fine. But this does slow it down a bit. Is there a way of
>increasing my socket buffer size? I tried some socket options with no
>result. It looks like an internal kernel socket allocation to me
>(abviously).

   It's not a socket problem. You're reaching the interface queue limit
which is 50 packets. You could sleep for a short period (usleep(10000), for
instance), and then try again. It should probably be possible to block until
the queue drains (unless O_NONBLOCK), but I'm pretty sure that this isn't
implemented.

> Is there a way of recompiling my kernel and increasing the
>size?

   You could, but that wouldn't be a very good solution.

-DG

David Greenman
Core-team/Principal Architect, The FreeBSD Project



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609080308.UAA14104>