libev/c-ares migration: unstack out ouf c-ares before querying new requests
authorWilfried Goesgens <dothebart@citadel.org>
Sun, 30 Jan 2011 14:27:29 +0000 (15:27 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 30 Jan 2011 14:27:29 +0000 (15:27 +0100)
commit757d27c6e4c9eefec77b1b4c4c41ea2a8b312007
tree7af53a1e7aa92f0a6597b6d7f1996b226e24155e
parentf73ec44ea6fb12fe23b7a021993dff8a28cbe0f7
libev/c-ares migration: unstack out ouf c-ares before querying new requests

  - we use the c-ares callback to parse the DNS reply and put the reply to our callback
  - we then set a zero-timer with the call to continue our flow
  - we return / unstack c-ares
  - we then do the a/aaaa record lookup without having another ares lookup in our stack
this circumvents double dns lookups.
citadel/event_client.c
citadel/event_client.h
citadel/modules/c-ares-dns/serv_c-ares-dns.c
citadel/modules/smtp/serv_smtpeventclient.c
citadel/modules/smtp/serv_smtpqueue.c