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

This commit is contained in:
UbitUmarov
2020-04-16 01:51:57 +01:00
parent bdddedc550
commit 4ab8da01bc

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)