summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-02-22 23:12:56 +0100
committerVolker Lendecke <vl@samba.org>2009-02-24 20:40:47 +0100
commitf9df355befdef7c424ebc70abfeb696de095235e (patch)
tree2551474b25038af75184a9b065748f70da47597e
parente50075a5804204068f07cb82337d3a251b368245 (diff)
downloadsamba-f9df355befdef7c424ebc70abfeb696de095235e.tar.gz
samba-f9df355befdef7c424ebc70abfeb696de095235e.tar.bz2
samba-f9df355befdef7c424ebc70abfeb696de095235e.zip
Fix async writev
-rw-r--r--lib/async_req/async_sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/async_req/async_sock.c b/lib/async_req/async_sock.c
index 33f8ebe192..67776ff67f 100644
--- a/lib/async_req/async_sock.c
+++ b/lib/async_req/async_sock.c
@@ -727,7 +727,7 @@ static void writev_handler(struct tevent_context *ev, struct tevent_fd *fde,
return;
}
if (written == 0) {
- tevent_req_error(req, EOF);
+ tevent_req_error(req, EPIPE);
return;
}
state->total_size += written;