From 0320225ca816dc6dfdd7a90fe80fdbbb8918139b Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sun, 21 May 2017 07:02:35 +0100 Subject: reenqueue poll events while conn is open, and not expired --- OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'OpenSim') diff --git a/OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs b/OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs index 4dad44a..cb0c41f 100644 --- a/OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs +++ b/OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs @@ -277,7 +277,11 @@ namespace OpenSim.Framework.Servers.HttpServer try { req.DoHTTPGruntWork(m_server, responsedata); - byContextDequeue(req); + if(req.HttpContext.CanSend() && req.PollServiceArgs.Type == PollServiceEventArgs.EventType.Poll + && (Environment.TickCount - req.RequestTime) > req.PollServiceArgs.TimeOutms) + ReQueueEvent(req); + else + byContextDequeue(req); } catch (ObjectDisposedException) // Browser aborted before we could read body, server closed the stream { -- cgit v1.1