flush sslstreams in keepalive case ( should not be needed but well )

master
UbitUmarov 2020-04-16 01:51:57 +01:00
parent bdddedc550
commit 4ab8da01bc
1 changed files with 11 additions and 0 deletions

View File

@ -525,6 +525,17 @@ namespace OSHttpServer
else
{
LastActivityTimeMS = ContextTimeoutManager.EnvironmentTickCount();
if(Stream!=null && Stream.CanWrite)
{
try
{
Stream.Flush();
}
catch
{
};
}
lock (requestsInServiceIDs)
{
if (requestsInServiceIDs.Count == 0)