From 41d7d2f2f4e3c1f78baea37312463363d2fe8f40 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sat, 2 May 2020 17:32:14 +0100 Subject: [PATCH] do dispose requests in context queue --- .../Servers/HttpServer/OSHttpServer/HttpClientContext.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/OpenSim/Framework/Servers/HttpServer/OSHttpServer/HttpClientContext.cs b/OpenSim/Framework/Servers/HttpServer/OSHttpServer/HttpClientContext.cs index ea7b932281..5a02ff3d46 100644 --- a/OpenSim/Framework/Servers/HttpServer/OSHttpServer/HttpClientContext.cs +++ b/OpenSim/Framework/Servers/HttpServer/OSHttpServer/HttpClientContext.cs @@ -239,6 +239,14 @@ namespace OSHttpServer m_currentRequest = null; m_currentResponse?.Clear(); m_currentResponse = null; + if(m_requests != null) + { + while(m_requests.Count > 0) + { + HttpRequest req = m_requests.Dequeue(); + req.Clear(); + } + } m_requests.Clear(); m_requests = null; m_parser.Clear();