nghttpx: Cache TLS client session after initial handshake was done

This commit is contained in:
Tatsuhiro Tsujikawa 2016-02-11 17:55:56 +09:00
parent b624ca6dcd
commit e4a727f86c
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ HttpDownstreamConnection::HttpDownstreamConnection(
group_(group) {} group_(group) {}
HttpDownstreamConnection::~HttpDownstreamConnection() { HttpDownstreamConnection::~HttpDownstreamConnection() {
if (conn_.tls.ssl) { if (conn_.tls.ssl && conn_.tls.initial_handshake_done) {
auto session = SSL_get0_session(conn_.tls.ssl); auto session = SSL_get0_session(conn_.tls.ssl);
if (session) { if (session) {
worker_->cache_client_tls_session(&addr_->addr, session, worker_->cache_client_tls_session(&addr_->addr, session,