]> source.dussan.org Git - nextcloud-server.git/commit
Added max heartbeat interval to prevent integer overflow
authorVincent Petry <pvince81@owncloud.com>
Thu, 12 Jun 2014 16:26:08 +0000 (18:26 +0200)
committerVincent Petry <pvince81@owncloud.com>
Thu, 12 Jun 2014 16:27:21 +0000 (18:27 +0200)
commit00ec5fc1935c946e846a8ff28491e5b5b017b3d7
treeaab4aa73b2f1bae606dd1b50f67a8e3539ac603a
parentb2fae8a8b783b72717606f5476487c320e24b636
Added max heartbeat interval to prevent integer overflow

When using big session timeout values, the interval value might overflow
and cause the setInterval() call to ping the server in a loop without
any delay.

This fix adds a maximum ping interval of 24 hours.
core/js/js.js