Subject: Re: tcp connection closed although initialized with ARES_FLAG_STAYOPEN

Re: tcp connection closed although initialized with ARES_FLAG_STAYOPEN

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 15 Nov 2007 00:23:28 +0100 (CET)

On Mon, 5 Nov 2007, Anlin Zhang wrote:

> Does ARES_FLAG_STAYOPEN means always keep tcp connections? or there is still
> a idle timeout? Or is the DNS server close the connection? Why client cannot
> detect this and re-open connection?

I think the lack of answers to this question is basically that nobody really
knows, and that you should dig into the sources to figure it out. Feel very
welcome to provide a manual or code patch once you've learned the details!

-- 
   c-ares -- my preferred DNS asynch resolver library
Received on 2007-11-15