mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
Slow down the packet receiving code again after new reports of thread storms.
This commit is contained in:
@@ -198,9 +198,6 @@ 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;
|
||||
@@ -219,7 +216,14 @@ namespace OpenMetaverse
|
||||
}
|
||||
catch (SocketException) { }
|
||||
catch (ObjectDisposedException) { }
|
||||
//finally { wrappedBuffer.Dispose(); }
|
||||
finally
|
||||
{
|
||||
// wrappedBuffer.Dispose();
|
||||
|
||||
// start another receive - this keeps the server going!
|
||||
AsyncBeginReceive();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user