From b4681b8584c43f0df3662cfbefbd2e27bad78170 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 3 Nov 2020 17:39:41 +0000 Subject: [PATCH] try to reduce chance of viewer timeouts --- OpenSim/Region/ClientStack/Linden/Caps/GetAssetsModule.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenSim/Region/ClientStack/Linden/Caps/GetAssetsModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/GetAssetsModule.cs index 5949b11e01..10e7b326cd 100755 --- a/OpenSim/Region/ClientStack/Linden/Caps/GetAssetsModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/GetAssetsModule.cs @@ -250,11 +250,11 @@ namespace OpenSim.Region.ClientStack.Linden OSHttpResponse resp = response.osresponse; - if(Util.GetTimeStamp() - resp.RequestTS > (resp.RawBufferLen > 2000000 ? 200 : 90)) + if(Util.GetTimeStamp() - resp.RequestTS > (resp.RawBufferLen > 2000000 ? 10 : 5)) return sp.CapCanSendAsset(2, resp.RawBufferLen); - if (resp.Priority > 1) - return sp.CapCanSendAsset(1, resp.RawBufferLen); + if (resp.Priority > 0) + return sp.CapCanSendAsset(resp.Priority, resp.RawBufferLen); return sp.CapCanSendAsset(2, resp.RawBufferLen); } return false;