UDP max datagram size

Grant Edwards grante at visi.com
Wed Apr 12 10:50:43 EDT 2006


On 2006-04-12, Iain King <iainking at gmail.com> wrote:

> Hi.  I've been looking everywhere for this and can't find it, apologies
> if I'm being obtuse:  How do I set the max datagram packet size?

What do you mean "datgram packet size"?

> I'm using the socket module.  It seem like it's hardcoded at
> 255, but I need it to be larger.

My tests show that Linux handles UDP datagrams of up to about
59000 on the "lo" interface and 12500 on Ethernet interfaces.

-- 
Grant Edwards                   grante             Yow!  Vote for ME
                                  at               -- I'm well-tapered,
                               visi.com            half-cocked, ill-conceived
                                                   and TAX-DEFERRED!



More information about the Python-list mailing list