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:
committed by
Gerald (Jerry) Carter
parent
340ad67cad
commit
b7fefe76a2
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user