From 0c87215c138ad8c8b3ee28aa3b2c43b9dd386fab Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 28 Dec 2020 14:55:59 +0000 Subject: [PATCH] no keepalive on gridinfo --- OpenSim/Server/Handlers/Grid/GridInfoHandlers.cs | 3 +++ OpenSim/Server/Handlers/Grid/GridInfoServerInConnector.cs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/OpenSim/Server/Handlers/Grid/GridInfoHandlers.cs b/OpenSim/Server/Handlers/Grid/GridInfoHandlers.cs index a12fe72fdb..8e6970ad65 100644 --- a/OpenSim/Server/Handlers/Grid/GridInfoHandlers.cs +++ b/OpenSim/Server/Handlers/Grid/GridInfoHandlers.cs @@ -127,6 +127,7 @@ namespace OpenSim.Server.Handlers.Grid public void RestGetGridInfoMethod(IOSHttpRequest httpRequest, IOSHttpResponse httpResponse) { + httpResponse.KeepAlive = false; if (httpRequest.HttpMethod != "GET") { httpResponse.StatusCode = (int)HttpStatusCode.MethodNotAllowed; @@ -165,6 +166,8 @@ namespace OpenSim.Server.Handlers.Grid /// public void JsonGetGridInfoMethod(IOSHttpRequest httpRequest, IOSHttpResponse httpResponse) { + httpResponse.KeepAlive = false; + if (httpRequest.HttpMethod != "GET") { httpResponse.StatusCode = (int)HttpStatusCode.MethodNotAllowed; diff --git a/OpenSim/Server/Handlers/Grid/GridInfoServerInConnector.cs b/OpenSim/Server/Handlers/Grid/GridInfoServerInConnector.cs index 5c157dbd27..b601d3b8fc 100644 --- a/OpenSim/Server/Handlers/Grid/GridInfoServerInConnector.cs +++ b/OpenSim/Server/Handlers/Grid/GridInfoServerInConnector.cs @@ -50,7 +50,7 @@ namespace OpenSim.Server.Handlers.Grid handlers.RestGetGridInfoMethod)); server.AddSimpleStreamHandler(new SimpleStreamHandler("/json_grid_info", handlers.JsonGetGridInfoMethod)); - server.AddXmlRPCHandler("get_grid_info", handlers.XmlRpcGridInfoMethod); + server.AddXmlRPCHandler("get_grid_info", handlers.XmlRpcGridInfoMethod, false); } } }