mirror of https://github.com/zulip/zulip.git
Shorten get_updates timeout to under a minute.
(imported from commit fcc87011051c25051861e3c36e442398cd3ca3c0)
This commit is contained in:
parent
03a02ff439
commit
9779ca9e5c
|
@ -642,7 +642,9 @@ function get_updates() {
|
|||
url: '/json/get_updates',
|
||||
data: get_updates_params,
|
||||
dataType: 'json',
|
||||
timeout: 10*60*1000, // 10 minutes in ms
|
||||
timeout: 55*1000, // 55 seconds in ms -- needs to be under a
|
||||
// minute to deal with crappy home wireless
|
||||
// routers that kill "inactive" http connections.
|
||||
success: function (data) {
|
||||
get_updates_params.failures = 0;
|
||||
$('#connection-error').hide();
|
||||
|
|
Loading…
Reference in New Issue