From 474a1f57caa2935d676f646b43f6142880517b82 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 20 Aug 2018 12:12:42 -0700 Subject: fixes #232 Add cancellation support to HTTP handler API Well, actually, #506 fixed that, but this fixes the commentary that indicates otherwise in the code. --- src/supplemental/http/http_server.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/supplemental/http/http_server.c b/src/supplemental/http/http_server.c index a72817b3..f36c941d 100644 --- a/src/supplemental/http/http_server.c +++ b/src/supplemental/http/http_server.c @@ -598,9 +598,7 @@ http_sconn_rxdone(void *arg) nni_aio_set_input(sc->cbaio, 1, h); nni_aio_set_input(sc->cbaio, 2, sc->conn); - // Technically, probably callback should initialize this with - // start, but we do it instead. - // This operation cannot at present canceled or timed out. + // Documented that we call this on behalf of the callback. if (nni_aio_begin(sc->cbaio) != 0) { nni_mtx_unlock(&s->mtx); return; -- cgit v1.2.3-70-g09d2