diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-09-29 13:18:50 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-09-29 13:18:50 +0200 |
commit | 135f68e249e4b01df7d9b5387a045bfb91bc4455 (patch) | |
tree | 722f0641af8d0abcf40570e38f8d72c2981d3d8a /include | |
parent | 46e06bf378e5edc38b5ce1c3ab1e4567eb756d24 (diff) | |
download | qtlocation-mapboxgl-135f68e249e4b01df7d9b5387a045bfb91bc4455.tar.gz |
add retries in case of connection failures
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/storage/http_request.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mbgl/storage/http_request.hpp b/include/mbgl/storage/http_request.hpp index 4c8d064d65..05e152aeba 100644 --- a/include/mbgl/storage/http_request.hpp +++ b/include/mbgl/storage/http_request.hpp @@ -32,9 +32,11 @@ private: void startHTTPRequest(std::unique_ptr<Response> &&res); void handleHTTPResponse(HTTPResponseType responseType, std::unique_ptr<Response> &&response); + void retryHTTPRequest(std::unique_ptr<Response> &&res, uint64_t timeout); void removeCacheBaton(); void removeHTTPBaton(); + void removeBackoffTimer(); private: const unsigned long thread_id; |