From 07b0d86121cf78e0f7407364240d8eb76bde8d80 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 11 Jun 2005 03:53:39 +0000 Subject: 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' (This used to be commit b7fefe76a2d3c288611868f41d65af4e13ac460b) --- source4/libcli/wins/winsrepl.c | 1 - 1 file changed, 1 deletion(-) (limited to 'source4/libcli/wins') diff --git a/source4/libcli/wins/winsrepl.c b/source4/libcli/wins/winsrepl.c index 65b713202f..732b597c53 100644 --- a/source4/libcli/wins/winsrepl.c +++ b/source4/libcli/wins/winsrepl.c @@ -200,7 +200,6 @@ static void wrepl_handler(struct event_context *ev, struct fd_event *fde, struct wrepl_socket); if (flags & EVENT_FD_WRITE) { wrepl_handler_send(wrepl_socket); - return; } if (flags & EVENT_FD_READ) { wrepl_handler_recv(wrepl_socket); -- cgit