aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-07-19 23:20:03 +0100
committerJustin Clark-Casey (justincc)2012-07-19 23:20:03 +0100
commitd1d331a4c02243c8bb4ada60566fa48417c95a5a (patch)
treec9f0d55af687cf5a5f4fafd95a5c8917e49af978 /OpenSim/Region/ClientStack/Linden
parentComment out OnIncomingInstantMessage and OnInstantMessage handlers in GroupsM... (diff)
downloadopensim-SC-d1d331a4c02243c8bb4ada60566fa48417c95a5a.zip
opensim-SC-d1d331a4c02243c8bb4ada60566fa48417c95a5a.tar.gz
opensim-SC-d1d331a4c02243c8bb4ada60566fa48417c95a5a.tar.bz2
opensim-SC-d1d331a4c02243c8bb4ada60566fa48417c95a5a.tar.xz
Make LLClientView instant message handling asynchronous rather than synchronous to prevent long operations from holding up all inbound packet processing.
Giving a large folder from one avatar to another was causing a long delay when handled synchronously, since it took some time to retrieve the necessary data from the inventory service. Handling this asynchronously instead stops this delay from disrupting all avatars in the scene. This has been shown in OSGrid. I see no reason for not handling all IM messages asynchronously, just as incoming chat is handled asynchronously, so this has been switched for all instant messages. Thanks to Nebadon for testing this change out.
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index ae5207b..f7864b8 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -5192,7 +5192,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
5192 AddLocalPacketHandler(PacketType.ChatFromViewer, HandleChatFromViewer); 5192 AddLocalPacketHandler(PacketType.ChatFromViewer, HandleChatFromViewer);
5193 AddLocalPacketHandler(PacketType.AvatarPropertiesUpdate, HandlerAvatarPropertiesUpdate); 5193 AddLocalPacketHandler(PacketType.AvatarPropertiesUpdate, HandlerAvatarPropertiesUpdate);
5194 AddLocalPacketHandler(PacketType.ScriptDialogReply, HandlerScriptDialogReply); 5194 AddLocalPacketHandler(PacketType.ScriptDialogReply, HandlerScriptDialogReply);
5195 AddLocalPacketHandler(PacketType.ImprovedInstantMessage, HandlerImprovedInstantMessage, false); 5195 AddLocalPacketHandler(PacketType.ImprovedInstantMessage, HandlerImprovedInstantMessage);
5196 AddLocalPacketHandler(PacketType.AcceptFriendship, HandlerAcceptFriendship); 5196 AddLocalPacketHandler(PacketType.AcceptFriendship, HandlerAcceptFriendship);
5197 AddLocalPacketHandler(PacketType.DeclineFriendship, HandlerDeclineFriendship); 5197 AddLocalPacketHandler(PacketType.DeclineFriendship, HandlerDeclineFriendship);
5198 AddLocalPacketHandler(PacketType.TerminateFriendship, HandlerTerminateFriendship); 5198 AddLocalPacketHandler(PacketType.TerminateFriendship, HandlerTerminateFriendship);