1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-02 20:23:50 +03:00

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 commit is contained in:
Andrew Tridgell
2005-06-11 03:53:39 +00:00
committed by Gerald (Jerry) Carter
parent 340ad67cad
commit b7fefe76a2
4 changed files with 6 additions and 4 deletions

View File

@@ -222,7 +222,8 @@ static void cldap_socket_handler(struct event_context *ev, struct fd_event *fde,
struct cldap_socket *cldap = talloc_get_type(private, struct cldap_socket);
if (flags & EVENT_FD_WRITE) {
cldap_socket_send(cldap);
} else if (flags & EVENT_FD_READ) {
}
if (flags & EVENT_FD_READ) {
cldap_socket_recv(cldap);
}
}