Execute janus_check_sessions
if at least one of (session_timeout
,reclaim_session_timeout
) is set
#2143
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR ensures that
janus_check_sessions
function will be called when one of the below conditions istrue
session_timeout
> 0
reclaim_session_timeout
> 0
Current behaviour
In current master,
janus_check_sessions
function won't be executed unlesssession_timeout
is> 0
, regardless of the value ofreclaim_session_timeout
session_timeout = 0
,reclaim_session_timeout = 0
: session is automatically destroyed upon ws disconnectionsession_timeout = 45
,reclaim_session_timeout = 15
: session is automatically destroyed15s
after ws disconnectionsession_timeout = 0
,reclaim_session_timeout = 15
: session is never destroyed (although logs indicate that it will, if not reclaimed)After
8min
, session still existsWith the patch
session_timeout = 0
,reclaim_session_timeout = 15
: session is automatically destroyed15s
after ws disconnection