diff --git a/indra/newview/llaisapi.cpp b/indra/newview/llaisapi.cpp index b7d0b1ef1a15a1054af074396c73fde41ce8c99e..17e1a27934d3e67c0347b7320355eae286870dac 100644 --- a/indra/newview/llaisapi.cpp +++ b/indra/newview/llaisapi.cpp @@ -1036,7 +1036,7 @@ AISUpdate::AISUpdate(const LLSD& update, AISAPI::COMMAND_TYPE type, const LLSD& mFetchDepth = request_body["depth"].asInteger(); } - mTimer.setTimerExpirySec(EXPIRY_SECONDS_LIVE); + mTimer.setTimerExpirySec(AIS_EXPIRY_SECONDS); mTimer.start(); parseUpdate(update); } @@ -1062,7 +1062,7 @@ void AISUpdate::checkTimeout() { llcoro::suspend(); LLCoros::checkStop(); - mTimer.setTimerExpirySec(EXPIRY_SECONDS_LIVE); + mTimer.setTimerExpirySec(AIS_EXPIRY_SECONDS); } } diff --git a/indra/newview/llaisapi.h b/indra/newview/llaisapi.h index 0fdf4a0b7421b84fc69d64cadee501057428c9f4..f254f21e42a5ae939b966197b3fa57d9d251fcc2 100644 --- a/indra/newview/llaisapi.h +++ b/indra/newview/llaisapi.h @@ -130,10 +130,9 @@ class AISUpdate void clearParseResults(); void checkTimeout(); - // Debug is very log-heavy, give it more time or it will take forever to process - // Todo: find a way to make throttle static isntead of per-request - const F32 EXPIRY_SECONDS_DEBUG = 1.f; - const F32 EXPIRY_SECONDS_LIVE = 0.008f; + // Fetch can return large packets of data, throttle it to not cause lags + // Todo: make throttle work over all fetch requests isntead of per-request + const F32 AIS_EXPIRY_SECONDS = 0.008f; typedef std::map<LLUUID,S32> uuid_int_map_t; uuid_int_map_t mCatDescendentDeltas;