Subject: Change servers during processing of queries

Change servers during processing of queries

From: Sugarhill Mountain <sugarhillmountain_at_gmail.com>
Date: Thu, 23 Apr 2015 10:15:46 +0545

Hello.

I want to fix the bug in io.js: https://github.com/iojs/io.js/issues/894
Same in node.js: https://github.com/joyent/node/issues/9243

Problems happen when function ares_change_servers() called before all
requests will be completed, or in other words, during the execution of the
function processfds().

In this patch new dns requests are handled by the new servers, and the old
servers closed when all requests will be resolved.

Thank you.

Received on 2015-04-23