mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-06 18:18:52 +08:00
nghttpx: Cache TLS client session after initial handshake was done
This commit is contained in:
@@ -130,7 +130,7 @@ HttpDownstreamConnection::HttpDownstreamConnection(
|
||||
group_(group) {}
|
||||
|
||||
HttpDownstreamConnection::~HttpDownstreamConnection() {
|
||||
if (conn_.tls.ssl) {
|
||||
if (conn_.tls.ssl && conn_.tls.initial_handshake_done) {
|
||||
auto session = SSL_get0_session(conn_.tls.ssl);
|
||||
if (session) {
|
||||
worker_->cache_client_tls_session(&addr_->addr, session,
|
||||
|
||||
Reference in New Issue
Block a user