From 21aa26d79607dfb2f84c9dc2692c0a0bb925afea Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 7 Aug 2019 17:39:17 +0100 Subject: [PATCH] cap EstateAccess: don't meed with keepAlive unless needed --- .../ClientStack/Linden/Caps/EstateAccess.cs | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/OpenSim/Region/ClientStack/Linden/Caps/EstateAccess.cs b/OpenSim/Region/ClientStack/Linden/Caps/EstateAccess.cs index a9f9456312..cd6cdef35f 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/EstateAccess.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/EstateAccess.cs @@ -140,18 +140,16 @@ namespace OpenSim.Region.ClientStack.Linden public Hashtable ProcessRequest(Hashtable request, UUID AgentId, Caps cap) { Hashtable responsedata = new Hashtable(); - responsedata["int_response_code"] = 400; //501; //410; //404; - responsedata["content_type"] = "text/plain"; - responsedata["keepalive"] = false; - responsedata["str_response_string"] = "Request wasn't what was expected"; - ScenePresence avatar; - - if (!m_scene.TryGetScenePresence(AgentId, out avatar)) - return responsedata; - responsedata["int_response_code"] = 200; //501; //410; //404; responsedata["content_type"] = "text/plain"; - responsedata["keepalive"] = true; + + ScenePresence avatar; + if (!m_scene.TryGetScenePresence(AgentId, out avatar)) + { + responsedata["str_response_string"] = ""; ; + responsedata["keepalive"] = false; + return responsedata; + } if (m_scene.RegionInfo == null || m_scene.RegionInfo.EstateSettings == null