@Override
        public boolean equals(Object o) {
            if (!(o instanceof HostAndPort)) {
                return false;
            }
            HostAndPort lhs = (HostAndPort) o;
            return host.equals(lhs.host) && port == lhs.port;
        }
Finds a cached session for the given host name and port.

@param host of server
@param port of server
@return cached session or null if none found
common/src/main/java/org/conscrypt/ClientSessionContext.java