flush sslstreams in keepalive case ( should not be needed but well )
parent
bdddedc550
commit
4ab8da01bc
|
@ -525,6 +525,17 @@ namespace OSHttpServer
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LastActivityTimeMS = ContextTimeoutManager.EnvironmentTickCount();
|
LastActivityTimeMS = ContextTimeoutManager.EnvironmentTickCount();
|
||||||
|
if(Stream!=null && Stream.CanWrite)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Stream.Flush();
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
lock (requestsInServiceIDs)
|
lock (requestsInServiceIDs)
|
||||||
{
|
{
|
||||||
if (requestsInServiceIDs.Count == 0)
|
if (requestsInServiceIDs.Count == 0)
|
||||||
|
|
Loading…
Reference in New Issue