Delay the enqueueing of non-longpoll requests for 100ms. No need to have these requests actively on the processing queue if it seems they're not ready.
parent
d1e9beead8
commit
dc88ffc5b4
|
@ -96,7 +96,17 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||||
private void ReQueueEvent(PollServiceHttpRequest req)
|
private void ReQueueEvent(PollServiceHttpRequest req)
|
||||||
{
|
{
|
||||||
if (m_running)
|
if (m_running)
|
||||||
|
{
|
||||||
|
// delay the enqueueing for 100ms. There's no need to have the event
|
||||||
|
// actively on the queue
|
||||||
|
Timer t = new Timer(self => {
|
||||||
|
((Timer)self).Dispose();
|
||||||
m_requests.Enqueue(req);
|
m_requests.Enqueue(req);
|
||||||
|
});
|
||||||
|
|
||||||
|
t.Change(100, Timeout.Infinite);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Enqueue(PollServiceHttpRequest req)
|
public void Enqueue(PollServiceHttpRequest req)
|
||||||
|
|
Loading…
Reference in New Issue