Revert "TODO writev_send not always TEVENT_FD_READ"
authorStefan Metzmacher <metze@samba.org>
Wed, 2 Oct 2013 13:17:57 +0000 (15:17 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 12 Mar 2014 23:04:45 +0000 (00:04 +0100)
This reverts commit a4c07bc7aa06959596084178610011d02b3cf543.

lib/async_req/async_sock.c

index 5cd8a9183a47adbf9b355862bbb4ec366c07c375..74b2cb7baa803223ff14d8c01cf54c6c481b0d03 100644 (file)
@@ -429,11 +429,8 @@ struct tevent_req *writev_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
        if (state->iov == NULL) {
                goto fail;
        }
-       state->flags = TEVENT_FD_WRITE;
+       state->flags = TEVENT_FD_WRITE|TEVENT_FD_READ;
        state->err_on_readability = err_on_readability;
-       if (state->err_on_readability) {
-               state->flags |= TEVENT_FD_READ;
-       }
 
        if (queue == NULL) {
                struct tevent_fd *fde;