r7483: ensure we try reading from a socket if epoll says we can, and don't
commitb7fefe76a2d3c288611868f41d65af4e13ac460b
authorAndrew Tridgell <tridge@samba.org>
Sat, 11 Jun 2005 03:53:39 +0000 (11 03:53 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:17:58 +0000 (10 13:17 -0500)
tree3c44613bce58f9bbbf872235aceecb40656d2ca5
parent340ad67cada15329051c205c5b094ad641718c72
r7483: ensure we try reading from a socket if epoll says we can, and don't
just do the write. This is needed because the write could return
-1/EAGAIN for dgram sockets, if the socket buffer is nearly full. The
epoll loop then goes on forever.

This was causing some failures in 'make test'
source/libcli/cldap/cldap.c
source/libcli/dgram/dgramsocket.c
source/libcli/nbt/nbtsocket.c
source/libcli/wins/winsrepl.c