You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2011/08/02 19:25:27 UTC

[jira] [Commented] (TS-859) ATS requesting to origin instead to the parent server

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

Leif Hedstrom commented on TS-859:
----------------------------------

Can you please try the following patch:

{code}
diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc
index 8cc81e2..edca818 100644
--- a/proxy/http/HttpSM.cc
+++ b/proxy/http/HttpSM.cc
@@ -6410,7 +6410,7 @@ HttpSM::set_next_state()
         t_state.dns_info.lookup_success = true;
         call_transact_and_set_next_state(NULL);
         break;
-      } else if (t_state.dns_info.lookup_success) { // Already set, from a plugin presumably
+      } else if (t_state.parent_result.r == PARENT_UNDEFINED && t_state.dns_info.lookup_success) { // Already set, from a plugin presumably
         ink_assert(t_state.host_db_info.ip());
         Debug("dns", "[HttpTransact::HandleRequest] Skipping DNS lookup, provided by plugin");
         call_transact_and_set_next_state(NULL);
{code}


> ATS requesting to origin instead to the parent server
> -----------------------------------------------------
>
>                 Key: TS-859
>                 URL: https://issues.apache.org/jira/browse/TS-859
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Cache, HTTP, Network
>    Affects Versions: 3.0.0
>         Environment: ATS 3.0
> CentOS 5.6 Linux 2.6.18-238.12.1.el5 64 bit. gcc 4.1.2-50.el5
> Compiled in this machine. Clean installation.
>            Reporter: Francisco Sariego
>            Assignee: Leif Hedstrom
>            Priority: Critical
>             Fix For: 3.1.0
>
>
> I'm trying to configure parent servers for hierarchical caching in a forward proxy mode, but I am showing strange effects.
> I have 3 servers:
> - The ATS 3.0 server (172.16.1.144)
> - The parents (172.16.1.195, 172.16.1.196)
> My installation is clean and I've changed only a few parameters.
> - records.config:
> CONFIG proxy.config.url_remap.remap_required INT 0
> CONFIG proxy.config.http.parent_proxy_routing_enable INT 1
> - parent.config
> dest_domain=.  parent="172.16.1.195:8080; 172.16.1.196:8080"  round_robin=strict
> If I request http://www.apache.org from my web browser, I see, using "tcpdump port 8080 -nn" in the ATS 3.0 machine connections to "140.211.11.131.8080" (www.apache.org) but nothing to the parent servers.
> Connectivity between the ATS and the parents are confirmed using telnet to the 8080 port, and is responding to HTTP requests.
> If I disable the parent config, ATS 3.0 works well.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira