nni_mtx_unlock(&s->mtx); nni_pipe_close(p->pipe); return; }if (!p->busy && !nni_aio_busy(&p->send_aio) && p->pingmsg) { p->busy = true; // send pingreq nni_msg_clone(p->pingmsg); nni_aio_set_msg(&p->send_aio, p->pingmsg); ...
static nni_cv resolv_cv = NNI_CV_INITIALIZER(&resolv_mtx); static bool resolv_fini = false; @@ -182,17 +186,23 @@ resolv_task(resolv_item *item) rv = NNG_EADDRINVAL; for (probe = results; probe != NULL; probe = probe->ai_next) { if ((probe->ai_addr->sa_family == AF...