James Peach created TS-4661:
-------------------------------
Summary: remap tunnel support is broken
Key: TS-4661
URL: https://issues.apache.org/jira/browse/TS-4661
Project: Traffic Server
Issue Type: Bug
Components: Remap API
Reporter: James Peach
{{remap.config}} claims to support {{tunnel://}} URLs, but this seems to be
totally broken. At least I can't get it to work.
If I start with a {{remap.config}} like this:
{noformat}
map tunnel://www.example.com/ tunnel://foo.com/
{noformat}
What happens is that inside {{remap_parse_config_bti}} it does a DNS resolution
and seems to try to ass mappings for each resolved address. Although this seems
like a bad idea, it doesn't work because {{getaddrinfo}} returns entries for
{{IPPROTO_UDP}} and {{IPPROTO_TCP}} and the loading code fails when it tries to
add duplicate mappings (it adds one for each address result and fails to check
the protocol field).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)