GitHub user jacksontj opened a pull request:

    https://github.com/apache/trafficserver/pull/631

    TS-4436: Move hosts file implementation to `do_dns`

    This moves the hosts file overrides down to the DNS layer instead of the 
HostDBInfo layer. This means that each port will get its own entry in hostdb, 
which will exist as its own HostDBInfo just like all the rest of the entries. 
This also means we only have to do the check in the map on DNS lookup instead 
of on each probe()
    
    In addition to fixing the down status issues, this also means we no longer 
need to keep old copies of the strings etc. since they are copied once 
lookup_done is called.
    
    
    Note: This patch is currently setting the TTL of the hosts file entry in 
HostDBInfo as `HOST_DB_TIMEOUT_INTERVAL` Ideally this would be the time 
remaining until the next hosts file sync, but I'm not sure if thats necessary-- 
thoughts?

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jacksontj/trafficserver TS-4436

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/trafficserver/pull/631.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #631
    
----
commit 6b8b86a2ec8329181649d56c6853a1d79d595a07
Author: Thomas Jackson <jacksontj...@gmail.com>
Date:   2016-05-11T02:59:24Z

    TS-4436: Move hosts file implementation to `do_dns`
    
    This moves the hosts file overrides down to the DNS layer instead of the 
HostDBInfo layer. This means that each port will get its own entry in hostdb, 
which will exist as its own HostDBInfo just like all the rest of the entries. 
This also means we only have to do the check in the map on DNS lookup instead 
of on each probe()
    
    In addition to fixing the down status issues, this also means we no longer 
need to keep old copies of the strings etc. since they are copied once 
lookup_done is called.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to