socket-util: drain_rcvbuf() for Windows.
authorGurucharan Shetty <gshetty@nicira.com>
Mon, 24 Feb 2014 17:58:35 +0000 (09:58 -0800)
committerGurucharan Shetty <gshetty@nicira.com>
Mon, 24 Feb 2014 18:21:12 +0000 (10:21 -0800)
commit5d5ffe9cb3a21b87a86b7f681922471241c7ef73
tree290e12866a7d14b1e0454a6434f78ff1caee5e4e
parent194db781b3d3848c015d144692969215b48ddafe
socket-util: drain_rcvbuf() for Windows.

Netlink sockets are created as blocking sockets. So, we can't
afford to remove MSG_DONTWAIT for Linux.

drain_rcvbuf() is currently called from netlink-socket.c and
netdev-linux.c. As of now, I don't see it being used for Windows.

Bug #1200865.
Reported-by: Len Gao <leng@vmware.com>
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
AUTHORS
lib/socket-util.c
lib/socket-util.h