Skip to content

Commit

Permalink
http: No need to do nni_aio_begin for callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Dec 26, 2024
1 parent c8b58f9 commit 35e77bd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/supplemental/http/http_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -702,11 +702,7 @@ http_sconn_rxdone(void *arg)
// asynchronously even after it gets removed from the server.
nni_atomic_inc(&h->ref);

// Documented that we call this on behalf of the callback.
if (nni_aio_begin(&sc->cbaio) != 0) {
nni_mtx_unlock(&s->mtx);
return;
}
nni_aio_reset(&sc->cbaio);

nni_mtx_unlock(&s->mtx);
h->cb(&sc->cbaio);
Expand Down

0 comments on commit 35e77bd

Please sign in to comment.