You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2017/05/31 22:51:41 UTC

[trafficserver] branch 7.1.x updated (edd3873 -> 2f5792b)

This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a change to branch 7.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git.

      from  edd3873   Use our ATS server to proxy for Bintray
       new  e0f4e50   Server information should be cleared when following redirect...for 7.1.x branch
       new  2f5792b   clang format

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "adds" were already present in the repository and have only
been added to this reference.


Summary of changes:
 proxy/http/HttpSM.cc      |  2 ++
 proxy/http/HttpTransact.h | 10 ++++++++--
 2 files changed, 10 insertions(+), 2 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].

[trafficserver] 01/02: Server information should be cleared when following redirect...for 7.1.x branch

Posted by zw...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 7.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit e0f4e5058edc4a59c1626e5b5d376d1864f94127
Author: vijayabhaskar <vi...@yahoo.com>
AuthorDate: Wed May 31 21:55:46 2017 +0000

    Server information should be cleared when following redirect...for 7.1.x branch
---
 proxy/http/HttpSM.cc      | 2 ++
 proxy/http/HttpTransact.h | 9 +++++++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc
index b5f3269..de96aa9 100644
--- a/proxy/http/HttpSM.cc
+++ b/proxy/http/HttpSM.cc
@@ -7859,6 +7859,8 @@ HttpSM::redirect_request(const char *redirect_url, const int redirect_len)
   // we have a new OS and need to have DNS lookup the new OS
   t_state.dns_info.lookup_success = false;
   t_state.force_dns               = false;
+  t_state.server_info.clear();
+  t_state.parent_info.clear();
 
   if (t_state.txn_conf->cache_http) {
     t_state.cache_info.object_read = nullptr;
diff --git a/proxy/http/HttpTransact.h b/proxy/http/HttpTransact.h
index 9049891..96fd9f5 100644
--- a/proxy/http/HttpTransact.h
+++ b/proxy/http/HttpTransact.h
@@ -702,8 +702,13 @@ public:
         port_attribute(HttpProxyPort::TRANSPORT_DEFAULT),
         is_transparent(false)
     {
-      memset(&src_addr, 0, sizeof(src_addr));
-      memset(&dst_addr, 0, sizeof(dst_addr));
+        clear();
+    }
+    void clear()
+    {
+        ink_zero(src_addr);
+        ink_zero(dst_addr);
+        connect_result = 0;
     }
   };
 

-- 
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.

[trafficserver] 02/02: clang format

Posted by zw...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 7.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit 2f5792b9b149aa1dd11be83ad7d4f4f619b049b3
Author: Vijay Mamidi <vi...@yahoo.com>
AuthorDate: Wed May 31 15:35:31 2017 -0700

    clang format
---
 proxy/http/HttpTransact.h | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/proxy/http/HttpTransact.h b/proxy/http/HttpTransact.h
index 96fd9f5..33fa650 100644
--- a/proxy/http/HttpTransact.h
+++ b/proxy/http/HttpTransact.h
@@ -702,13 +702,14 @@ public:
         port_attribute(HttpProxyPort::TRANSPORT_DEFAULT),
         is_transparent(false)
     {
-        clear();
+      clear();
     }
-    void clear()
+    void
+    clear()
     {
-        ink_zero(src_addr);
-        ink_zero(dst_addr);
-        connect_result = 0;
+      ink_zero(src_addr);
+      ink_zero(dst_addr);
+      connect_result = 0;
     }
   };
 

-- 
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.