Home
last modified time | relevance | path

Searched refs:globalLimit (Results 1 – 2 of 2) sorted by relevance

/packages/modules/DnsResolver/
DOperationLimiter.h64 bool start(KeyType key, int globalLimit = MAX_QUERIES_IN_TOTAL) EXCLUDES(mMutex) { in EXCLUDES()
66 if (globalLimit < mLimitPerKey) { in EXCLUDES()
67 LOG(ERROR) << "Misconfiguration on max_queries_global " << globalLimit; in EXCLUDES()
68 globalLimit = MAX_QUERIES_IN_TOTAL; in EXCLUDES()
70 if (mGlobalCounter >= globalLimit) { in EXCLUDES()
72 LOG(ERROR) << "Query from " << key << " denied due to global limit: " << globalLimit; in EXCLUDES()
DDnsProxyListener.cpp85 const int globalLimit = android::net::Experiments::getInstance()->getFlag("max_queries_global", in startQueryLimiter() local
87 return queryLimiter.start(uid, globalLimit); in startQueryLimiter()