do dispose requests in context queue

master
UbitUmarov 2020-05-02 17:32:14 +01:00
parent 0b0b5111df
commit 41d7d2f2f4
1 changed files with 8 additions and 0 deletions

View File

@ -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();