Github user jpeach commented on a diff in the pull request:

    https://github.com/apache/trafficserver/pull/1000#discussion_r78414689
  
    --- Diff: proxy/http/HttpSessionManager.cc ---
    @@ -75,17 +75,32 @@ ServerSessionPool::match(HttpServerSession *ss, 
sockaddr const *addr, INK_MD5 co
              (TS_SERVER_SESSION_SHARING_MATCH_HOST == match_style || 
ats_ip_addr_port_eq(ss->get_server_ip(), addr));
     }
     
    +bool
    +ServerSessionPool::match_sni(HttpSM *sm, NetVConnection *netvc)
    +{
    +  // TS-4468: If the connection matches, make sure the SNI server
    +  // name (if present) matches the request hostname
    +  int len                 = 0;
    +  const char *req_host    = 
sm->t_state.hdr_info.server_request.host_get(&len);
    +  const char *session_sni = netvc->options.sni_servername;
    +
    +  return ((sm->t_state.scheme != URL_WKSIDX_HTTPS) || !session_sni || 
!strncmp(session_sni, req_host, len));
    --- End diff --
    
    Do you need to make a case-insensitive comparison here?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to