From 74330085ecad1d7ab686f5cc421fdc66022f0da7 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 4 Jun 2009 12:02:38 +0200 Subject: [PATCH] Only err on readability if writev_send was explicitly asked to do so A socket might be readable for other reasons --- lib/async_req/async_sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/async_req/async_sock.c b/lib/async_req/async_sock.c index d88edb177a6..a505fcf4656 100644 --- a/lib/async_req/async_sock.c +++ b/lib/async_req/async_sock.c @@ -425,7 +425,7 @@ static void writev_handler(struct tevent_context *ev, struct tevent_fd *fde, to_write = 0; - if (flags & TEVENT_FD_READ) { + if ((state->flags & TEVENT_FD_READ) && (flags & TEVENT_FD_READ)) { tevent_req_error(req, EPIPE); return; } -- 2.34.1