mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
* Changed the "Packet exceeded buffer size" log line to debug and include the packet type. This message is normal, but could be evidence of a message marked for zerocoding that probably shouldn't be
* Changing OpenSimUDPBase back to high concurrency. High concurrency mode seems to make other problems happen faster, so it's helpful for working out other bugs and will probably
This commit is contained in:
@@ -268,7 +268,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
// The packet grew larger than the bufferSize while zerocoding.
|
||||
// Remove the MSG_ZEROCODED flag and send the unencoded data
|
||||
// instead
|
||||
m_log.Info("[LLUDPSERVER]: Packet exceeded buffer size during zerocoding. Removing MSG_ZEROCODED flag");
|
||||
m_log.Debug("[LLUDPSERVER]: Packet exceeded buffer size during zerocoding for " + type + ". Removing MSG_ZEROCODED flag");
|
||||
data[0] = (byte)(data[0] & ~Helpers.MSG_ZEROCODED);
|
||||
Buffer.BlockCopy(data, 0, buffer.Data, 0, dataLength);
|
||||
}
|
||||
|
||||
@@ -198,6 +198,9 @@ namespace OpenMetaverse
|
||||
// to AsyncBeginReceive
|
||||
if (!m_shutdownFlag)
|
||||
{
|
||||
// start another receive - this keeps the server going!
|
||||
AsyncBeginReceive();
|
||||
|
||||
// get the buffer that was created in AsyncBeginReceive
|
||||
// this is the received data
|
||||
//WrappedObject<UDPPacketBuffer> wrappedBuffer = (WrappedObject<UDPPacketBuffer>)iar.AsyncState;
|
||||
@@ -216,13 +219,7 @@ namespace OpenMetaverse
|
||||
}
|
||||
catch (SocketException) { }
|
||||
catch (ObjectDisposedException) { }
|
||||
finally
|
||||
{
|
||||
// wrappedBuffer.Dispose();
|
||||
|
||||
// start another receive - this keeps the server going!
|
||||
AsyncBeginReceive();
|
||||
}
|
||||
//finally { wrappedBuffer.Dispose(); }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user