From 34ee6ece5adf86a324c89ed4dc96e77ad0dac893 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 15 Jul 2017 17:13:36 -0700 Subject: Bus, Req/Rep, and Surv/Resp should use aio_cancel instead of aio_stop. --- src/protocol/reqrep/req.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/protocol/reqrep/req.c') diff --git a/src/protocol/reqrep/req.c b/src/protocol/reqrep/req.c index f77700f5..f13094ff 100644 --- a/src/protocol/reqrep/req.c +++ b/src/protocol/reqrep/req.c @@ -1,5 +1,6 @@ // // Copyright 2017 Garrett D'Amore +// Copyright 2017 Capitar IT Group BV // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this @@ -209,11 +210,11 @@ nni_req_pipe_stop(void *arg) nni_req_pipe *rp = arg; nni_req_sock *req = rp->req; - nni_aio_stop(&rp->aio_getq); - nni_aio_stop(&rp->aio_putq); - nni_aio_stop(&rp->aio_recv); - nni_aio_stop(&rp->aio_sendcooked); - nni_aio_stop(&rp->aio_sendraw); + nni_aio_cancel(&rp->aio_getq, NNG_ECANCELED); + nni_aio_cancel(&rp->aio_putq, NNG_ECANCELED); + nni_aio_cancel(&rp->aio_recv, NNG_ECANCELED); + nni_aio_cancel(&rp->aio_sendcooked, NNG_ECANCELED); + nni_aio_cancel(&rp->aio_sendraw, NNG_ECANCELED); // At this point there should not be any further AIOs running. // Further, any completion tasks have completed. -- cgit v1.2.3-70-g09d2