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:42 UTC
[trafficserver] 01/02: Server information should be cleared when
following redirect...for 7.1.x branch
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>.