You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2022/01/25 20:55:00 UTC
[trafficserver] branch 9.2.x updated: free sessions when timeout (#8356)
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.2.x by this push:
new c6a8276 free sessions when timeout (#8356)
c6a8276 is described below
commit c6a8276d1dee8f2ee655573cf69a3e001a159d59
Author: Fei Deng <du...@gmail.com>
AuthorDate: Mon Sep 27 18:16:19 2021 -0500
free sessions when timeout (#8356)
(cherry picked from commit bf3d5e815ad585de1cfcfc5baf66b78f7b230d75)
---
iocore/net/TLSSessionResumptionSupport.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/iocore/net/TLSSessionResumptionSupport.cc b/iocore/net/TLSSessionResumptionSupport.cc
index e8e981e..31575c5 100644
--- a/iocore/net/TLSSessionResumptionSupport.cc
+++ b/iocore/net/TLSSessionResumptionSupport.cc
@@ -160,6 +160,7 @@ TLSSessionResumptionSupport::getSession(SSL *ssl, const unsigned char *id, int l
#if 0 // This is currently eliminated, since it breaks things in odd ways (see TS-3710)
ssl_rm_cached_session(SSL_get_SSL_CTX(ssl), session);
#endif
+ SSL_SESSION_free(session);
session = nullptr;
} else {
SSL_INCREMENT_DYN_STAT(ssl_session_cache_hit);