aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2010-10-30 01:35:12 +0100
committerJustin Clark-Casey (justincc)2010-10-30 01:35:12 +0100
commit343c89465891234be94da33719dcbdd903993a42 (patch)
treecdb789278652f3eb26e3a4640e1a166b88312cb5
parentChange level of some logging messages, turning some info into arguably more a... (diff)
downloadopensim-SC_OLD-343c89465891234be94da33719dcbdd903993a42.zip
opensim-SC_OLD-343c89465891234be94da33719dcbdd903993a42.tar.gz
opensim-SC_OLD-343c89465891234be94da33719dcbdd903993a42.tar.bz2
opensim-SC_OLD-343c89465891234be94da33719dcbdd903993a42.tar.xz
Set async_packet_handling = true by default
Setting this to true avoids a 500ms or so client freeze when the LLUDP server thread is taken up with processing a UseCircuitCode packet synchronously. Extensive testing on Wright Plaza appeared to show no bad effects and this seems to reduce login lag considerably. Of course, a lot of login lag is still coming from other sources.
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs2
-rw-r--r--bin/OpenSimDefaults.ini3
2 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
index 161e8c2..821f679 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
@@ -183,7 +183,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
183 IConfig config = configSource.Configs["ClientStack.LindenUDP"]; 183 IConfig config = configSource.Configs["ClientStack.LindenUDP"];
184 if (config != null) 184 if (config != null)
185 { 185 {
186 m_asyncPacketHandling = config.GetBoolean("async_packet_handling", false); 186 m_asyncPacketHandling = config.GetBoolean("async_packet_handling", true);
187 m_recvBufferSize = config.GetInt("client_socket_rcvbuf_size", 0); 187 m_recvBufferSize = config.GetInt("client_socket_rcvbuf_size", 0);
188 sceneThrottleBps = config.GetInt("scene_throttle_max_bps", 0); 188 sceneThrottleBps = config.GetInt("scene_throttle_max_bps", 0);
189 189
diff --git a/bin/OpenSimDefaults.ini b/bin/OpenSimDefaults.ini
index 5ced7d5..de7c44c 100644
--- a/bin/OpenSimDefaults.ini
+++ b/bin/OpenSimDefaults.ini
@@ -328,8 +328,9 @@
328 ; already separated from packet handling with a queue, so this will only 328 ; already separated from packet handling with a queue, so this will only
329 ; affect whether networking internals such as packet decoding and 329 ; affect whether networking internals such as packet decoding and
330 ; acknowledgement accounting are done synchronously or asynchronously 330 ; acknowledgement accounting are done synchronously or asynchronously
331 ; Default is true.
331 ; 332 ;
332 ;async_packet_handling = false 333 ;async_packet_handling = true
333 334
334 ; The client socket receive buffer size determines how many 335 ; The client socket receive buffer size determines how many
335 ; incoming requests we can process; the default on .NET is 8192 336 ; incoming requests we can process; the default on .NET is 8192