maskit opened a new issue, #13986: URL: https://github.com/apache/trafficserver/issues/13986
When `proxy.config.http.server_session_sharing.match` includes `sni`, a TLS origin session to an IP-literal origin is never reused. `validate_sni()` compares the request's outbound SNI from `HttpSM::get_outbound_sni()` with the name the session sent. Under the default `host` SNI policy the outbound SNI for an IP-literal origin is the literal itself, but `NetVCOptions::set_sni_servername()` drops IP literals (RFC 6066 section 3), so the session sent no name. `ServerSessionPool::sni_matches()` then compares the literal with the empty name, and they never match. The comparison could treat an IP-literal outbound SNI as no name, matching what the handshake actually sends. Under the default `match: both`, which does not include `sni`, these sessions are reused. I found this by reading the code and have not reproduced it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
