| 71 | } |
| 72 | |
| 73 | bool |
| 74 | ServerSessionPool::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 | |
| 87 | bool |
| 88 | ServerSessionPool::validate_host_sni(HttpSM *sm, NetVConnection *netvc) |
no test coverage detected