Le 2014-04-29 09:55, Henning Brauer a écrit :
>> Wouldn't it be better if libasr would run A and AAAA requests in
>> parallel? Whichever response arrives first "wins".
> no, since that gives extremely unpredictable results.

How about this then:

- Run both requests in parallel.
- When one response is received, start a short timer (e.g. 200ms or so).
- If the second response is received before the timer expires, sort and
return the results as usual.
- Otherwise, kill the second request and return what you have.

Simon

Reply via email to