]> git.tuebingen.mpg.de Git - paraslash.git/commit
udp_recv: Replace recv_bin_buffer() by Use para_readv().
authorAndre Noll <maan@systemlinux.org>
Tue, 16 Mar 2010 21:14:31 +0000 (22:14 +0100)
committerAndre Noll <maan@systemlinux.org>
Tue, 16 Mar 2010 21:14:31 +0000 (22:14 +0100)
commita31d410d3dbc0f0c866a11a5a46b58054625f4ba
tree1a2c09c160710362b438004fb1ae19ea637ff4e3
parentcf2dd5eac38421fdeaaccd08ec34efe27f9a858d
udp_recv: Replace recv_bin_buffer() by Use para_readv().

As pointed out by Gerrit Renker, the UDP receiver suffers from the
same problem that was fixed in commit 9e44ee8 for the DCCP receiver:
recv() might lose data if less than a full datagram is available in
the receiving buffer.

This patch solves the problem for udp_recv in the same way as 9e44ee8
does for dccp_recv.
udp_recv.c