Permalink
Browse files

Use IpEndpoint in FetchSM

  • Loading branch information...
1 parent 5e8f122 commit 744eabae0a4ac7f8849c66c3353d9895b2bc0d2d @shukitchan shukitchan committed Feb 23, 2014
Showing with 3 additions and 3 deletions.
  1. +1 −1 proxy/FetchSM.cc
  2. +2 −2 proxy/FetchSM.h
View
@@ -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;
View
@@ -60,7 +60,7 @@ class FetchSM: public Continuation
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 @@ class FetchSM: public Continuation
bool req_finished;
bool header_done;
bool resp_finished;
- sockaddr const * _addr;
+ IpEndpoint _addr;
};
#endif

0 comments on commit 744eaba

Please sign in to comment.