[core] Throttle the number of concurrent requests to 20

This commit is contained in:
John Firebaugh
2016-02-08 16:52:22 -08:00
parent 5d42321b73
commit ff15bd51b9
5 changed files with 120 additions and 50 deletions

View File

@@ -247,6 +247,10 @@ std::unique_ptr<HTTPContextBase> HTTPContextBase::createContext() {
return std::make_unique<HTTPAndroidContext>();
}
uint32_t HTTPContextBase::maximumConcurrentRequests() {
return 20;
}
void JNICALL nativeOnFailure(JNIEnv* env, jobject, jlong nativePtr, jint type, jstring message) {
mbgl::Log::Debug(mbgl::Event::JNI, "nativeOnFailure");
assert(nativePtr != 0);