diff options
Diffstat (limited to 'OpenSim')
5 files changed, 33 insertions, 7 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs index 6d548ad..b9038bd 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs | |||
@@ -372,7 +372,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
372 | 372 | ||
373 | caps.RegisterPollHandler( | 373 | caps.RegisterPollHandler( |
374 | "EventQueueGet", | 374 | "EventQueueGet", |
375 | new PollServiceEventArgs(null, GenerateEqgCapPath(eventQueueGetUUID), HasEvents, GetEvents, NoEvents, agentID, SERVER_EQ_TIME_NO_EVENTS)); | 375 | new PollServiceEventArgs(null, GenerateEqgCapPath(eventQueueGetUUID), HasEvents, GetEvents, NoEvents, Drop, agentID, SERVER_EQ_TIME_NO_EVENTS)); |
376 | } | 376 | } |
377 | 377 | ||
378 | public bool HasEvents(UUID requestID, UUID agentID) | 378 | public bool HasEvents(UUID requestID, UUID agentID) |
@@ -577,6 +577,14 @@ namespace OpenSim.Region.ClientStack.Linden | |||
577 | //m_log.InfoFormat("########### eq ChatterBoxSessionAgentListUpdates #############\n{0}", item); | 577 | //m_log.InfoFormat("########### eq ChatterBoxSessionAgentListUpdates #############\n{0}", item); |
578 | } | 578 | } |
579 | 579 | ||
580 | public void ChatterBoxForceClose(UUID toAgent, UUID sessionID, string reason) | ||
581 | { | ||
582 | OSD item = EventQueueHelper.ChatterBoxForceClose(sessionID, reason); | ||
583 | |||
584 | Enqueue(item, toAgent); | ||
585 | //m_log.InfoFormat("########### eq ChatterBoxSessionAgentListUpdates #############\n{0}", item); | ||
586 | } | ||
587 | |||
580 | public void ParcelProperties(ParcelPropertiesMessage parcelPropertiesMessage, UUID avatarID) | 588 | public void ParcelProperties(ParcelPropertiesMessage parcelPropertiesMessage, UUID avatarID) |
581 | { | 589 | { |
582 | OSD item = EventQueueHelper.ParcelProperties(parcelPropertiesMessage); | 590 | OSD item = EventQueueHelper.ParcelProperties(parcelPropertiesMessage); |
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs index d552914..5e0bd71 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs | |||
@@ -342,6 +342,18 @@ namespace OpenSim.Region.ClientStack.Linden | |||
342 | return chatterBoxSessionAgentListUpdates; | 342 | return chatterBoxSessionAgentListUpdates; |
343 | } | 343 | } |
344 | 344 | ||
345 | public static OSD ChatterBoxForceClose(UUID sessionID, string reason) | ||
346 | { | ||
347 | OSDMap body = new OSDMap(2); | ||
348 | body.Add("session_id", new OSDUUID(sessionID)); | ||
349 | body.Add("reason", new OSDString(reason)); | ||
350 | |||
351 | OSDMap chatterBoxForceClose = new OSDMap(2); | ||
352 | chatterBoxForceClose.Add("message", new OSDString("ForceCloseChatterBoxSession")); | ||
353 | chatterBoxForceClose.Add("body", body); | ||
354 | return chatterBoxForceClose; | ||
355 | } | ||
356 | |||
345 | public static OSD GroupMembershipData(UUID receiverAgent, GroupMembershipData[] data) | 357 | public static OSD GroupMembershipData(UUID receiverAgent, GroupMembershipData[] data) |
346 | { | 358 | { |
347 | OSDArray AgentData = new OSDArray(1); | 359 | OSDArray AgentData = new OSDArray(1); |
diff --git a/OpenSim/Region/Framework/Interfaces/IEventQueue.cs b/OpenSim/Region/Framework/Interfaces/IEventQueue.cs index b525769..3f54ea5 100644 --- a/OpenSim/Region/Framework/Interfaces/IEventQueue.cs +++ b/OpenSim/Region/Framework/Interfaces/IEventQueue.cs | |||
@@ -52,11 +52,12 @@ namespace OpenSim.Region.Framework.Interfaces | |||
52 | string capsURL, UUID avatarID, UUID sessionID, | 52 | string capsURL, UUID avatarID, UUID sessionID, |
53 | int regionSizeX, int regionSizeY); | 53 | int regionSizeX, int regionSizeY); |
54 | void ChatterboxInvitation(UUID sessionID, string sessionName, | 54 | void ChatterboxInvitation(UUID sessionID, string sessionName, |
55 | UUID fromAgent, string message, UUID toAgent, string fromName, byte dialog, | 55 | UUID fromAgent, string message, UUID toAgent, string fromName, byte dialog, |
56 | uint timeStamp, bool offline, int parentEstateID, Vector3 position, | 56 | uint timeStamp, bool offline, int parentEstateID, Vector3 position, |
57 | uint ttl, UUID transactionID, bool fromGroup, byte[] binaryBucket); | 57 | uint ttl, UUID transactionID, bool fromGroup, byte[] binaryBucket); |
58 | void ChatterBoxSessionAgentListUpdates(UUID sessionID, UUID fromAgent, UUID anotherAgent, bool canVoiceChat, | 58 | void ChatterBoxSessionAgentListUpdates(UUID sessionID, UUID fromAgent, UUID anotherAgent, |
59 | bool isModerator, bool textMute, bool isEnterorLeave); | 59 | bool canVoiceChat, bool isModerator, bool textMute, bool isEnterorLeave); |
60 | void ChatterBoxForceClose(UUID toAgent, UUID sessionID, string reason); | ||
60 | void ParcelProperties(ParcelPropertiesMessage parcelPropertiesMessage, UUID avatarID); | 61 | void ParcelProperties(ParcelPropertiesMessage parcelPropertiesMessage, UUID avatarID); |
61 | void GroupMembershipData(UUID receiverAgent, GroupMembershipData[] data); | 62 | void GroupMembershipData(UUID receiverAgent, GroupMembershipData[] data); |
62 | OSD ScriptRunningEvent(UUID objectID, UUID itemID, bool running, bool mono); | 63 | OSD ScriptRunningEvent(UUID objectID, UUID itemID, bool running, bool mono); |
diff --git a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsServicesConnectorModule.cs b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsServicesConnectorModule.cs index 88189c9..eb64f71 100644 --- a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsServicesConnectorModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsServicesConnectorModule.cs | |||
@@ -1011,7 +1011,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
1011 | 1011 | ||
1012 | if ((m_cacheTimeout > 0) && (CacheKey != null)) | 1012 | if ((m_cacheTimeout > 0) && (CacheKey != null)) |
1013 | { | 1013 | { |
1014 | m_memoryCache.AddOrUpdate(CacheKey, resp, TimeSpan.FromSeconds(10)); | 1014 | m_memoryCache.AddOrUpdate(CacheKey, resp, 10.0); |
1015 | } | 1015 | } |
1016 | } | 1016 | } |
1017 | 1017 | ||
diff --git a/OpenSim/Tests/Common/Mock/TestEventQueueGetModule.cs b/OpenSim/Tests/Common/Mock/TestEventQueueGetModule.cs index 417efce..bc30945 100644 --- a/OpenSim/Tests/Common/Mock/TestEventQueueGetModule.cs +++ b/OpenSim/Tests/Common/Mock/TestEventQueueGetModule.cs | |||
@@ -152,6 +152,11 @@ namespace OpenSim.Tests.Common | |||
152 | AddEvent(toAgent, "ChatterBoxSessionAgentListUpdates", sessionID, fromAgent, canVoiceChat, isModerator, textMute, isEnterorLeave); | 152 | AddEvent(toAgent, "ChatterBoxSessionAgentListUpdates", sessionID, fromAgent, canVoiceChat, isModerator, textMute, isEnterorLeave); |
153 | } | 153 | } |
154 | 154 | ||
155 | public void ChatterBoxForceClose (UUID toAgent, UUID sessionID, string reason) | ||
156 | { | ||
157 | AddEvent(toAgent, "ForceCloseChatterBoxSession", sessionID, reason); | ||
158 | } | ||
159 | |||
155 | public void ParcelProperties (OpenMetaverse.Messages.Linden.ParcelPropertiesMessage parcelPropertiesMessage, UUID avatarID) | 160 | public void ParcelProperties (OpenMetaverse.Messages.Linden.ParcelPropertiesMessage parcelPropertiesMessage, UUID avatarID) |
156 | { | 161 | { |
157 | AddEvent(avatarID, "ParcelProperties", parcelPropertiesMessage); | 162 | AddEvent(avatarID, "ParcelProperties", parcelPropertiesMessage); |