diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-02-08 16:52:22 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-02-10 15:40:20 -0800 |
commit | ff15bd51b94c96f169f0b3800fa04a368c5834c6 (patch) | |
tree | bff20aad89ea7427803246dd2e0e322146ee2b4e /src | |
parent | 5d42321b73dcafbfd76d38331558e5e60f7d9f1e (diff) | |
download | qtlocation-mapboxgl-ff15bd51b94c96f169f0b3800fa04a368c5834c6.tar.gz |
[core] Throttle the number of concurrent requests to 20
Diffstat (limited to 'src')
-rw-r--r-- | src/mbgl/storage/http_context_base.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mbgl/storage/http_context_base.hpp b/src/mbgl/storage/http_context_base.hpp index b50bf11ec7..6615ea00cf 100644 --- a/src/mbgl/storage/http_context_base.hpp +++ b/src/mbgl/storage/http_context_base.hpp @@ -11,6 +11,7 @@ namespace mbgl { class HTTPContextBase { public: static std::unique_ptr<HTTPContextBase> createContext(); + static uint32_t maximumConcurrentRequests(); virtual ~HTTPContextBase() = default; virtual HTTPRequestBase* createRequest(const Resource&, HTTPRequestBase::Callback) = 0; |