cURL / Mailing Lists / curl-library / Single Mail


blocking on dns resolving

From: Pedro Larroy <>
Date: Sun, 18 Dec 2011 03:33:33 +0100


After some flustration with blocking on dns requests while using the
multi interface with libevent ( I
investigated how curl uses ares and I came to the conclusion that the
design of asyn-ares.c is very limiting.

What's the point of having all the goodies of the multi interface to
use epoll etc, when waitperform function in asyn-ares.c just polls
waiting for DNS queries to finish?

I think the proper way would be to expose the resolving sockets up to
the multi interface so the whole system is really asynchronous. Is
there any reason why it wasn't done this way?


List admin:
Received on 2011-12-18