Skip to content

Conversation

@danxuliu
Copy link
Member

Backport of #11756

When "session_lifetime" can not be converted to a number the interval
becomes a NaN due to dividing it by 2. This NaN was "dragged" over all
the other mathematical operations and caused the heartbeat to be post
again and again due to an infinite loop with no pauses in "setInterval".
Now, the interval is set to the default value instead if the
"session_lifetime" can not be converted to a number.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@danxuliu danxuliu added bug 3. to review Waiting for reviews labels Oct 11, 2018
@danxuliu danxuliu added this to the Nextcloud 13.0.8 milestone Oct 11, 2018
@rullzer rullzer added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Oct 11, 2018
@MorrisJobke MorrisJobke merged commit 329c210 into stable13 Oct 11, 2018
@MorrisJobke MorrisJobke deleted the stable13-11756-ignore-session-lifetime-if-it-can-not-be-converted-to-a-number branch October 11, 2018 11:25
@MorrisJobke MorrisJobke mentioned this pull request Nov 13, 2018
@MorrisJobke MorrisJobke mentioned this pull request Nov 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants