[ 
https://issues.apache.org/jira/browse/TS-3725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14615932#comment-14615932
 ] 

ASF subversion and git services commented on TS-3725:
-----------------------------------------------------

Commit 02678a1f8c9abc92985fbf6d7bb8a4b02467ba6b in trafficserver's branch 
refs/heads/master from [~jacksontj]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=02678a1 ]

Maintain and use a mapping of hostname -> IP to implement host file support

This allows the background thread to populate a map of overrides, which we 
simply inject in the lookup method-- in place of calling to DNS.

Fixes: TS-3725


> ATS's use of host files is broken
> ---------------------------------
>
>                 Key: TS-3725
>                 URL: https://issues.apache.org/jira/browse/TS-3725
>             Project: Traffic Server
>          Issue Type: Bug
>    Affects Versions: 5.3.0, 6.0.0
>            Reporter: Thomas Jackson
>            Assignee: Thomas Jackson
>             Fix For: 6.0.0
>
>
> The previous implementation actually loaded up the hosts file (in a 
> background thread) and did a get (getbyname_imm) and then set the IPs to 
> match. This works-- but does cause a problem since the port set on it is 0.
> What we need to do is have this thread maintain in an in-memory mapping of 
> name -> ip and have it override resolution within hostdb-- that way we can 
> use host files and maintain whether reals are up or down.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to