MCPcopy Create free account
hub / github.com/apache/trafficserver / match

Method match

src/proxy/http/HttpSessionManager.cc:73–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73bool
74ServerSessionPool::match(PoolableSession *ss, sockaddr const *addr, CryptoHash const &hostname_hash,
75 TSServerSessionSharingMatchMask match_style)
76{
77 bool retval = match_style != 0;
78 if (retval && (TS_SERVER_SESSION_SHARING_MATCH_MASK_IP & match_style)) {
79 retval = ats_ip_addr_port_eq(ss->get_remote_addr(), addr);
80 }
81 if (retval && (TS_SERVER_SESSION_SHARING_MATCH_MASK_HOSTONLY & match_style)) {
82 retval = (ats_ip_port_cast(addr) == ats_ip_port_cast(ss->get_remote_addr()) && ss->hostname_hash == hostname_hash);
83 }
84 return retval;
85}
86
87bool
88ServerSessionPool::validate_host_sni(HttpSM *sm, NetVConnection *netvc)

Callers 5

hdrtoken_tokenize_dfaFunction · 0.45
mime_parse_dayFunction · 0.45
mime_parse_monthFunction · 0.45
test_Hdrs.ccFile · 0.45

Calls 2

ats_ip_addr_port_eqFunction · 0.85
get_remote_addrMethod · 0.45

Tested by

no test coverage detected