big udp packets
djm at indirect.com
Thu Oct 14 18:19:29 PDT 1999
On Thu, 14 Oct 1999, Patrick Tullmann wrote:
> I had trouble with Kaffe receiving large UDP packets (~45K). It
> turned out that the default buffer size under FreeBSD wasn't big
> enough. I "fixed" the problem with the attached patch. (Basically I
> asked the kernel to reserve 128K for reach UDP socket).
> I'm not sure if this is something we should foist on all Kaffe users,
> though. Thoughts?
Probably not. Most people don't send packets that big, and the buffers
can take up a lot of memory if you're using, say, hundreds of sockets.
(Well, at least they do on *BSD, where the buffers are allocated in
advance. In Linux, the buffers grow dynamically up to a maximum size of
It would be nice if all of the available socket options were accessible
from the application level, but I guess that's just a matter of how Sun
wants to define the API's...
More information about the kaffe