diff options
author | UbitUmarov | 2014-07-24 23:32:39 +0100 |
---|---|---|
committer | UbitUmarov | 2014-07-24 23:32:39 +0100 |
commit | 86a9710e77b76fb8a37faf9dacd22a0973628d92 (patch) | |
tree | e66022812a0a64ed0dfb8d93653760281402c654 /OpenSim | |
parent | EventQueueGetModule: dont reuse queues, we dont know whats there; make (diff) | |
download | opensim-SC-86a9710e77b76fb8a37faf9dacd22a0973628d92.zip opensim-SC-86a9710e77b76fb8a37faf9dacd22a0973628d92.tar.gz opensim-SC-86a9710e77b76fb8a37faf9dacd22a0973628d92.tar.bz2 opensim-SC-86a9710e77b76fb8a37faf9dacd22a0973628d92.tar.xz |
change previus code, send a NoEvents response back to http server, even
if we know there is no one there, so that the server finishes handling
it.
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs | 3 | ||||
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs | 3 |
2 files changed, 1 insertions, 5 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs b/OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs index 21e52ca..4058229 100644 --- a/OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs +++ b/OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs | |||
@@ -204,9 +204,6 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
204 | { | 204 | { |
205 | Hashtable responsedata = req.PollServiceArgs.GetEvents(req.RequestID, req.PollServiceArgs.Id); | 205 | Hashtable responsedata = req.PollServiceArgs.GetEvents(req.RequestID, req.PollServiceArgs.Id); |
206 | 206 | ||
207 | if (responsedata == null) | ||
208 | continue; | ||
209 | |||
210 | if (req.PollServiceArgs.Type == PollServiceEventArgs.EventType.LongPoll) // This is the event queue | 207 | if (req.PollServiceArgs.Type == PollServiceEventArgs.EventType.LongPoll) // This is the event queue |
211 | { | 208 | { |
212 | try | 209 | try |
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs index e0ce35b..4a2ac86 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs | |||
@@ -380,8 +380,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
380 | Queue<OSD> queue = GetQueue(pAgentId); | 380 | Queue<OSD> queue = GetQueue(pAgentId); |
381 | if (queue == null) | 381 | if (queue == null) |
382 | { | 382 | { |
383 | //return NoEvents(requestID, pAgentId); | 383 | return NoEvents(requestID, pAgentId); |
384 | return null; | ||
385 | } | 384 | } |
386 | 385 | ||
387 | OSD element; | 386 | OSD element; |