a few more changes on oshttp response

This commit is contained in:
UbitUmarov
2021-09-05 14:18:10 +01:00
parent affaacb279
commit 34b6998cfd
2 changed files with 51 additions and 42 deletions

View File

@@ -533,6 +533,7 @@ namespace OSHttpServer
{
if(m_currentResponse == null)
return;
LastActivityTimeMS = ContextTimeoutManager.EnvironmentTickCount();
ContextTimeoutManager.EnqueueSend(this, m_currentResponse.Priority);
}
@@ -556,10 +557,10 @@ namespace OSHttpServer
}
else
{
LastActivityTimeMS = ContextTimeoutManager.EnvironmentTickCount();
if (Stream == null || !Stream.CanWrite)
return;
LastActivityTimeMS = ContextTimeoutManager.EnvironmentTickCount();
HttpRequest nextRequest = null;
lock (m_requestsLock)
{