summaryrefslogtreecommitdiff
path: root/lib/async_req/async_sock.h
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-05-23 16:10:54 +0200
committerVolker Lendecke <vl@samba.org>2009-05-24 13:47:29 +0200
commita8e02b591b0c82c1f75f4f51bc683d9775f13d54 (patch)
tree25628a860b58c1dfad40028a83e2a148fcaa568f /lib/async_req/async_sock.h
parent1a69ba894514dd4eaba9fa015bdf930a5b620fea (diff)
downloadsamba-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 'lib/async_req/async_sock.h')
-rw-r--r--lib/async_req/async_sock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/async_req/async_sock.h b/lib/async_req/async_sock.h
index ec859dc0ae..a50e93238a 100644
--- a/lib/async_req/async_sock.h
+++ b/lib/async_req/async_sock.h
@@ -41,6 +41,7 @@ int async_connect_recv(struct tevent_req *req, int *perrno);
struct tevent_req *writev_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
struct tevent_queue *queue, int fd,
+ bool err_on_readability,
struct iovec *iov, int count);
ssize_t writev_recv(struct tevent_req *req, int *perrno);