From 9779ca9e5cb78efecdec27c857a58ccd74254883 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 23 Oct 2012 11:30:18 -0400 Subject: [PATCH] Shorten get_updates timeout to under a minute. (imported from commit fcc87011051c25051861e3c36e442398cd3ca3c0) --- zephyr/static/js/zephyr.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zephyr/static/js/zephyr.js b/zephyr/static/js/zephyr.js index 2fed6bbea9..655ec5d03e 100644 --- a/zephyr/static/js/zephyr.js +++ b/zephyr/static/js/zephyr.js @@ -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();