From 8f8a2ad8d64c760d11aca44ca547c0eac2dd0d9d Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Tue, 12 Nov 2013 06:28:58 +0000 Subject: [PATCH] the stock site was updated to only request 4 tiles per request - so match this in iitc (the response has only managed 4 tiles for a long time, with the rest returning 'timeout' and silently retried) --- code/map_data_request.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/map_data_request.js b/code/map_data_request.js index ecf31368..3431a6c5 100644 --- a/code/map_data_request.js +++ b/code/map_data_request.js @@ -17,9 +17,11 @@ window.MapDataRequest = function() { // no more than this many requests in parallel this.MAX_REQUESTS = 4; + // no more than this many tiles in one request - // (the stock site seems to have no limit - i've seen ~100 for L3+ portals and a maximised browser window) - this.MAX_TILES_PER_REQUEST = 32; + // as of 2013-11-11, or possibly the release before that, the stock site was changed to only request four tiles at a time + // (which matches the number successfully returned for a *long* time!) + this.MAX_TILES_PER_REQUEST = 4; // try to maintain at least this may tiles in each request, by reducing the number of requests as needed this.MIN_TILES_PER_REQUEST = 4;