reenqueue poll events while conn is open, and not expired

httptests
UbitUmarov 2017-05-21 07:02:35 +01:00
parent e520dba717
commit 0320225ca8
1 changed files with 5 additions and 1 deletions

View File

@ -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
{