From cc32bc04ec2b910707cfcc4a17e63a9ade070975 Mon Sep 17 00:00:00 2001 From: Pankaj Garg Date: Fri, 21 Aug 2020 13:20:33 -0700 Subject: [PATCH] Disable session expiry until rekeying is supported (#2279) --- src/transport/SecureSessionMgr.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/transport/SecureSessionMgr.cpp b/src/transport/SecureSessionMgr.cpp index 8473fdb3a185e5..97681d953b9d8c 100644 --- a/src/transport/SecureSessionMgr.cpp +++ b/src/transport/SecureSessionMgr.cpp @@ -307,7 +307,9 @@ void SecureSessionMgrBase::HandleConnectionExpired(const Transport::PeerConnecti void SecureSessionMgrBase::ExpiryTimerCallback(System::Layer * layer, void * param, System::Error error) { SecureSessionMgrBase * mgr = reinterpret_cast(param); +#if CHIP_CONFIG_SESSION_REKEYING mgr->mPeerConnections.ExpireInactiveConnections(CHIP_PEER_CONNECTION_TIMEOUT_MS); +#endif mgr->ScheduleExpiryTimer(); // re-schedule the oneshot timer }