diff options
author | Volker Lendecke <vl@samba.org> | 2009-05-23 16:10:54 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-05-24 13:47:29 +0200 |
commit | a8e02b591b0c82c1f75f4f51bc683d9775f13d54 (patch) | |
tree | 25628a860b58c1dfad40028a83e2a148fcaa568f /source3/lib | |
parent | 1a69ba894514dd4eaba9fa015bdf930a5b620fea (diff) | |
download | samba-a8e02b591b0c82c1f75f4f51bc683d9775f13d54.tar.gz samba-a8e02b591b0c82c1f75f4f51bc683d9775f13d54.tar.bz2 samba-a8e02b591b0c82c1f75f4f51bc683d9775f13d54.zip |
Add "err_on_readability" to writev_send
A socket where the other side has closed only becomes readable. To catch
errors early when sitting in a pure writev, we need to also test for
readability.
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/wb_reqtrans.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/wb_reqtrans.c b/source3/lib/wb_reqtrans.c index df92ecf8b0..3fdf62a108 100644 --- a/source3/lib/wb_reqtrans.c +++ b/source3/lib/wb_reqtrans.c @@ -152,7 +152,7 @@ struct tevent_req *wb_req_write_send(TALLOC_CTX *mem_ctx, count = 2; } - subreq = writev_send(state, ev, queue, fd, state->iov, count); + subreq = writev_send(state, ev, queue, fd, true, state->iov, count); if (tevent_req_nomem(subreq, req)) { return tevent_req_post(req, ev); } @@ -309,7 +309,7 @@ struct tevent_req *wb_resp_write_send(TALLOC_CTX *mem_ctx, count = 2; } - subreq = writev_send(state, ev, queue, fd, state->iov, count); + subreq = writev_send(state, ev, queue, fd, true, state->iov, count); if (tevent_req_nomem(subreq, req)) { return tevent_req_post(req, ev); } |