reduce the delay between requests - now we always send 4 at a time, rather than larger batches, a shorter delay is better

This commit is contained in:
Jon Atkins 2014-06-16 16:39:42 +01:00
parent c2ffad80d7
commit fe2542902c

View File

@ -41,8 +41,7 @@ window.MapDataRequest = function() {
// a short delay between one request finishing and the queue being run for the next request.
// this gives a chance of other requests finishing, allowing better grouping of retries in new requests
this.RUN_QUEUE_DELAY = 0.2;
this.RUN_QUEUE_DELAY = 0.05;
// delay before processing the queue after failed requests
this.BAD_REQUEST_RUN_QUEUE_DELAY = 10; // longer delay before doing anything after errors (other than TIMEOUT)