mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
remove from use the UpdatesResend on resending udp packets. Just resend
the UDP packet. Also just loose packets we tried to send 6 times already (ll says 3) A viewer may just beeing ignoring them, or then the link is just dead.
This commit is contained in:
@@ -1207,6 +1207,16 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
//m_log.DebugFormat("[LLUDPSERVER]: Resending packet #{0} (attempt {1}), {2}ms have passed",
|
||||
// outgoingPacket.SequenceNumber, outgoingPacket.ResendCount, Environment.TickCount - outgoingPacket.TickCount);
|
||||
|
||||
// Bump up the resend count on this packet
|
||||
Interlocked.Increment(ref outgoingPacket.ResendCount);
|
||||
|
||||
// loose packets we retried more than 6 times
|
||||
// sl says 3 so lets be more tolerant
|
||||
// we can't not keep hammering with packets a viewer may just beeing ignoring
|
||||
|
||||
if (outgoingPacket.ResendCount > 6)
|
||||
return;
|
||||
|
||||
// Set the resent flag
|
||||
outgoingPacket.Buffer.Data[0] = (byte)(outgoingPacket.Buffer.Data[0] | Helpers.MSG_RESENT);
|
||||
outgoingPacket.Category = ThrottleOutPacketType.Resend;
|
||||
|
||||
Reference in New Issue
Block a user