diag(game-server): log packet sequence mismatch (post-handshake)
Build Game Server / build (push) Successful in 21s
Build Game Server / build (push) Successful in 21s
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -129,16 +129,19 @@ public class FNetPacketNotify
|
|||||||
{
|
{
|
||||||
if (!notificationData.Seq.Greater(_inSeq))
|
if (!notificationData.Seq.Greater(_inSeq))
|
||||||
{
|
{
|
||||||
|
Logger.Information("[HS-SEQ] fail1 seq<=inSeq seq={Seq} inSeq={InSeq}", notificationData.Seq.Value, _inSeq.Value);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!notificationData.AckedSeq.GreaterEq(_outAckSeq))
|
if (!notificationData.AckedSeq.GreaterEq(_outAckSeq))
|
||||||
{
|
{
|
||||||
|
Logger.Information("[HS-SEQ] fail2 ackedSeq<outAckSeq ackedSeq={Acked} outAckSeq={OutAck}", notificationData.AckedSeq.Value, _outAckSeq.Value);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_outSeq.Greater(notificationData.AckedSeq))
|
if (!_outSeq.Greater(notificationData.AckedSeq))
|
||||||
{
|
{
|
||||||
|
Logger.Information("[HS-SEQ] fail3 outSeq<=ackedSeq outSeq={OutSeq} ackedSeq={Acked}", _outSeq.Value, notificationData.AckedSeq.Value);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1079,6 +1079,7 @@ public abstract class UNetConnection : UPlayer
|
|||||||
|
|
||||||
public void InitSequence(int incomingSequence, int outgoingSequence)
|
public void InitSequence(int incomingSequence, int outgoingSequence)
|
||||||
{
|
{
|
||||||
|
Logger.Information("[HS-SEQ] InitSequence incoming={In} outgoing={Out}", incomingSequence, outgoingSequence);
|
||||||
if (InPacketId == -1)
|
if (InPacketId == -1)
|
||||||
{
|
{
|
||||||
// Initialize the base UNetConnection packet sequence (not very useful/effective at preventing attacks)
|
// Initialize the base UNetConnection packet sequence (not very useful/effective at preventing attacks)
|
||||||
|
|||||||
Reference in New Issue
Block a user