mirror of https://github.com/c-ares/c-ares.git
Tool: STAYOPEN flag could make tools not terminate (#569)
If a flag is set to keep the connections to the DNS servers open even if there are no queries, the tools would not exit until the remote server closed the connection due to the user of ares_fds() to determine if there are any active queries. Instead, rely on ares_timeout() returning NULL if there are no active queries (technically this returns the value passed to max_tv in ares_timeout(), but in our use case, that is always NULL). Fixes Issue: #452 Fix By: Brad House (@bradh352)pull/570/head
parent
973023b4b9
commit
4d12e69abb
3 changed files with 6 additions and 0 deletions
Loading…
Reference in new issue