SL-19533 Removed per-run limit
Doesn't seem to work like expected and I never get more than 7-9 requests running totalmeow-7.2.2
parent
7bb5644969
commit
377f177a86
|
|
@ -624,9 +624,6 @@ void LLInventoryModelBackgroundFetch::bulkFetchViaAis()
|
|||
return;
|
||||
}
|
||||
|
||||
// Don't fire all requests at once
|
||||
const U32 max_requests_this_run = llmin(mFetchCount + 5, max_concurrent_fetches);
|
||||
|
||||
// Don't loop for too long (in case of large, fully loaded inventory)
|
||||
F64 curent_time = LLTimer::getTotalSeconds();
|
||||
const F64 max_time = LLStartUp::getStartupState() > STATE_WEARABLES_WAIT
|
||||
|
|
@ -635,7 +632,7 @@ void LLInventoryModelBackgroundFetch::bulkFetchViaAis()
|
|||
const F64 end_time = curent_time + max_time;
|
||||
S32 last_fetch_count = mFetchCount;
|
||||
|
||||
while (!mFetchFolderQueue.empty() && mFetchCount < max_requests_this_run && curent_time < end_time)
|
||||
while (!mFetchFolderQueue.empty() && mFetchCount < max_concurrent_fetches && curent_time < end_time)
|
||||
{
|
||||
const FetchQueueInfo & fetch_info(mFetchFolderQueue.front());
|
||||
bulkFetchViaAis(fetch_info);
|
||||
|
|
@ -646,7 +643,7 @@ void LLInventoryModelBackgroundFetch::bulkFetchViaAis()
|
|||
// Ideally we shouldn't fetch items if recursive fetch isn't done,
|
||||
// but there is a chance some request will start timeouting and recursive
|
||||
// fetch will get stuck on a signle folder, don't block item fetch in such case
|
||||
while (!mFetchItemQueue.empty() && mFetchCount < max_requests_this_run && curent_time < end_time)
|
||||
while (!mFetchItemQueue.empty() && mFetchCount < max_concurrent_fetches && curent_time < end_time)
|
||||
{
|
||||
const FetchQueueInfo& fetch_info(mFetchItemQueue.front());
|
||||
bulkFetchViaAis(fetch_info);
|
||||
|
|
|
|||
Loading…
Reference in New Issue