From 4ab8da01bc19821c10a1680b97b8e6ccd2c45489 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 16 Apr 2020 01:51:57 +0100 Subject: [PATCH] flush sslstreams in keepalive case ( should not be needed but well ) --- .../HttpServer/OSHttpServer/HttpClientContext.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/OpenSim/Framework/Servers/HttpServer/OSHttpServer/HttpClientContext.cs b/OpenSim/Framework/Servers/HttpServer/OSHttpServer/HttpClientContext.cs index bd8b413fe3..625f0bfff3 100644 --- a/OpenSim/Framework/Servers/HttpServer/OSHttpServer/HttpClientContext.cs +++ b/OpenSim/Framework/Servers/HttpServer/OSHttpServer/HttpClientContext.cs @@ -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)