From: Volker Lendecke Date: Thu, 4 Jun 2009 10:02:38 +0000 (+0200) Subject: Only err on readability if writev_send was explicitly asked to do so X-Git-Tag: tdb-1.1.5~303 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74330085ecad1d7ab686f5cc421fdc66022f0da7;p=thirdparty%2Fsamba.git Only err on readability if writev_send was explicitly asked to do so A socket might be readable for other reasons --- 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; }