Subject: Cancelling in-flight DNS request

Cancelling in-flight DNS request

From: David Guillen Fandos <david_at_davidgf.es>
Date: Sat, 19 Apr 2014 20:41:34 +0200

Hello,

I just wondered whether it was possible to cancel an in-flight request
for a particular host without cancelling them all.
For example, let's say I query two DNS requests using
"ares_gethostbyname" and I keep looping and polling FDs. After some time
I just decide to cancel one of the requests but still want to receive a
response for the remaining one. Is it possible to do so? And how?

Thanks!

David
Received on 2014-04-19