[Gambas-user] odd gb3 issue

Toni Rosa arosa at ...2168...
Fri Jun 3 13:56:20 CEST 2011


>> Anyone have any insight?
>
> After doing an insane amount of network testing and debugging I
> discovered that sending multiple consecutive UDP packets over a loopback
> interface or reliable and fast LAN cause the recipient to overflow its
> buffer and lose packets. I could be wrong, but this seems to be the
> case. I found no problems in my network.
>
> I inserted a 100 ms delay between packet transmission and this corrected
> the issue. Any insight still appreciated, as I may have to differentiate
> between LAN clients and WAN clients so the delay is only inserted when
> necessary.

You could increase the receiver buffer changing the Kernel variables
"net.core.rmem_max" and "net.core.rmem_default" (In Debian-like systems
you can set it inside /etc/sysctl.conf)

Have a look at:
http://stackoverflow.com/questions/2090850/specifying-udp-receive-buffer-size-at-runtime-in-linux

Regards,
Toni





More information about the User mailing list