Shorten get_updates timeout to under a minute.

(imported from commit fcc87011051c25051861e3c36e442398cd3ca3c0)
This commit is contained in:
Tim Abbott 2012-10-23 11:30:18 -04:00
parent 03a02ff439
commit 9779ca9e5c
1 changed files with 3 additions and 1 deletions

View File

@ -642,7 +642,9 @@ function get_updates() {
url: '/json/get_updates', url: '/json/get_updates',
data: get_updates_params, data: get_updates_params,
dataType: 'json', 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) { success: function (data) {
get_updates_params.failures = 0; get_updates_params.failures = 0;
$('#connection-error').hide(); $('#connection-error').hide();