[
https://issues.apache.org/jira/browse/TS-3725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14617767#comment-14617767
]
ASF GitHub Bot commented on TS-3725:
------------------------------------
GitHub user jacksontj opened a pull request:
https://github.com/apache/trafficserver/pull/242
Add tests for TS-3725
This includes allowing loopback addresses in hosts files. @SolidWallOfCode
had some concerns, but from my testing I can't see any reason why we wouldn't
allow this here.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jacksontj/trafficserver master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/trafficserver/pull/242.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 #242
----
commit 5a3b1395659d1abb482890ab2de09edcd35d9cb9
Author: Thomas Jackson <[email protected]>
Date: 2015-07-07T02:21:53Z
Allow for loopback addresses in a hosts file
commit 214cd38036955d0305605e8de3ee49a2360fc567
Author: Thomas Jackson <[email protected]>
Date: 2015-07-07T02:50:23Z
Add basic tests for the Hosts file implementation in ATS
----
> 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)