make sure we drop requests if DoHTTPGruntWork fails

This commit is contained in:
UbitUmarov
2017-05-22 05:53:59 +01:00
parent bad00670a9
commit fcb435deb4

View File

@@ -244,11 +244,13 @@ namespace OpenSim.Framework.Servers.HttpServer
try
{
req.DoHTTPGruntWork(m_server, responsedata);
byContextDequeue(req);
}
catch (ObjectDisposedException) // Browser aborted before we could read body, server closed the stream
catch (ObjectDisposedException)
{
// Ignore it, no need to reply
}
finally
{
byContextDequeue(req);
}
return null;
}, null);
@@ -263,12 +265,15 @@ namespace OpenSim.Framework.Servers.HttpServer
{
req.DoHTTPGruntWork(m_server,
req.PollServiceArgs.NoEvents(req.RequestID, req.PollServiceArgs.Id));
byContextDequeue(req);
}
catch (ObjectDisposedException)
{
// Ignore it, no need to reply
}
finally
{
byContextDequeue(req);
}
return null;
}, null);
}