UDP send() question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

We are working on a program that sends UDP datagrams in a fast loop, using
Debian Linux 3.0 (kernel 2.4.9-686-smp).

The send() function does not block until it can send the datagram. Therefore
the theorical throughput is very high (even higher than the physical network
bandwidth), but most packets are lost.

We would like to have a reasonable packet loss rate (although we need UDP
and not TCP). Currently the only way to ensure the datagrams leave the host
is to force the program to wait between two send() calls. Is there a way in
Linux to make send() really block instead of dropping most datagrams ? Do
you know other systems (*-BSD...) where send() behaves differently ?

Thanks,
Olivier Cado
--
http://www.nevrax.org
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux