X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fc-ares-dns%2Fserv_c-ares-dns.c;h=07e44a11351a4e789a5bf16fe33261d41b45a44e;hb=ed1626a8680415154da2f2f81d943e7bbbadc717;hp=2de80574df85bd3d6693459e10ad3cf1548278cf;hpb=529b95fb3844d9f047793836f50405a6d99991e4;p=citadel.git diff --git a/citadel/modules/c-ares-dns/serv_c-ares-dns.c b/citadel/modules/c-ares-dns/serv_c-ares-dns.c index 2de80574d..07e44a113 100644 --- a/citadel/modules/c-ares-dns/serv_c-ares-dns.c +++ b/citadel/modules/c-ares-dns/serv_c-ares-dns.c @@ -529,10 +529,16 @@ int QueueQuery(ns_type Type, char *name, AsyncIO *IO, IO_CallBack PostDNS) static void DNS_recv_callback(struct ev_loop *loop, ev_io *watcher, int revents) { + AsyncIO *IO = watcher->data; + + ares_process_fd(IO->DNSChannel, IO->sock, 0); } static void DNS_send_callback(struct ev_loop *loop, ev_io *watcher, int revents) { + AsyncIO *IO = watcher->data; + + ares_process_fd(IO->DNSChannel, 0, IO->sock); } void SockStateCb(void *data, int sock, int read, int write)