Repository: trafficserver
Updated Branches:
  refs/heads/master 5e8f12288 -> 744eabae0


Use IpEndpoint in FetchSM


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/744eabae
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/744eabae
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/744eabae

Branch: refs/heads/master
Commit: 744eabae0a4ac7f8849c66c3353d9895b2bc0d2d
Parents: 5e8f122
Author: Kit Chan <[email protected]>
Authored: Sat Feb 22 23:43:14 2014 -0800
Committer: Kit Chan <[email protected]>
Committed: Sat Feb 22 23:43:14 2014 -0800

----------------------------------------------------------------------
 proxy/FetchSM.cc | 2 +-
 proxy/FetchSM.h  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/744eabae/proxy/FetchSM.cc
----------------------------------------------------------------------
diff --git a/proxy/FetchSM.cc b/proxy/FetchSM.cc
index a0c70f7..89e2f68 100644
--- a/proxy/FetchSM.cc
+++ b/proxy/FetchSM.cc
@@ -52,7 +52,7 @@ void
 FetchSM::httpConnect()
 {
   Debug(DEBUG_TAG, "[%s] calling httpconnect write", __FUNCTION__);
-  http_vc = TSHttpConnect(_addr);
+  http_vc = TSHttpConnect(&_addr.sa);
 
   PluginVC *vc = (PluginVC *) http_vc;
 

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/744eabae/proxy/FetchSM.h
----------------------------------------------------------------------
diff --git a/proxy/FetchSM.h b/proxy/FetchSM.h
index 05241a4..3057fc4 100644
--- a/proxy/FetchSM.h
+++ b/proxy/FetchSM.h
@@ -60,7 +60,7 @@ public:
     mutex = new_ProxyMutex();
     callback_events = events;
     callback_options = options;
-    _addr = addr;
+    _addr.assign(addr);
     writeRequest(headers,length);
     SET_HANDLER(&FetchSM::fetch_handler);
   }
@@ -104,7 +104,7 @@ private:
   bool req_finished;
   bool header_done;
   bool resp_finished;
-  sockaddr const * _addr;
+  IpEndpoint _addr;
 };
 
 #endif

Reply via email to