From 8c810e4e73623a656d5828a7a58dcb6f81b93e59 Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Sat, 30 Nov 2013 05:48:33 +0000 Subject: [PATCH] decrease retry count on failed requests, and increase delay before retrying. another step to help reduce issues when IITC breaks due to site changes --- code/map_data_request.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/map_data_request.js b/code/map_data_request.js index fac77036..9c4f52be 100644 --- a/code/map_data_request.js +++ b/code/map_data_request.js @@ -28,7 +28,7 @@ window.MapDataRequest = function() { this.MIN_TILES_PER_REQUEST = 4; // number of times to retry a tile after a 'bad' error (i.e. not a timeout) - this.MAX_TILE_RETRIES = 3; + this.MAX_TILE_RETRIES = 1; // refresh timers this.MOVE_REFRESH = 1; //time, after a map move (pan/zoom) before starting the refresh processing @@ -45,7 +45,7 @@ window.MapDataRequest = function() { this.RUN_QUEUE_DELAY = 0.5; // delay before requeuing tiles in failed requests - this.BAD_REQUEST_REQUEUE_DELAY = 5; // longer delay before retrying a completely failed request - as in this case the servers are struggling + this.BAD_REQUEST_REQUEUE_DELAY = 10; // longer delay before retrying a completely failed request - as in this case the servers are struggling // a delay before processing the queue after requeuing tiles. this gives a chance for other requests to finish // or other requeue actions to happen before the queue is processed, allowing better grouping of requests