git.samba.org
/
kai
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8def5cb
)
Only err on readability if writev_send was explicitly asked to do so
author
Volker Lendecke
<vl@samba.org>
Thu, 4 Jun 2009 10:02:38 +0000
(12:02 +0200)
committer
Volker Lendecke
<vl@samba.org>
Thu, 4 Jun 2009 10:05:00 +0000
(12:05 +0200)
A socket might be readable for other reasons
lib/async_req/async_sock.c
patch
|
blob
|
history
diff --git
a/lib/async_req/async_sock.c
b/lib/async_req/async_sock.c
index d88edb177a6b8c37022fe184b8bdeb9f1f221f6b..a505fcf465679b3326d5567c55a22c9de5af0df4 100644
(file)
--- 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;
to_write = 0;
- if (
flags & TEVENT_FD_READ
) {
+ if (
(state->flags & TEVENT_FD_READ) && (flags & TEVENT_FD_READ)
) {
tevent_req_error(req, EPIPE);
return;
}
tevent_req_error(req, EPIPE);
return;
}