Skip to content

Commit

Permalink
Disable session expiry until rekeying is supported (#2279)
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-apple authored Aug 21, 2020
1 parent 375d2ac commit cc32bc0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/transport/SecureSessionMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<SecureSessionMgrBase *>(param);
#if CHIP_CONFIG_SESSION_REKEYING
mgr->mPeerConnections.ExpireInactiveConnections(CHIP_PEER_CONNECTION_TIMEOUT_MS);
#endif
mgr->ScheduleExpiryTimer(); // re-schedule the oneshot timer
}

Expand Down

0 comments on commit cc32bc0

Please sign in to comment.