>> 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


------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to