Skip to content

NetworkConnection.ValidatePacketSize: cannot send packet larger than 508 bytes #7

@fdsagizi

Description

@fdsagizi

508 bytes its fully unused lib...

as a see this, some problem in LiteNet Lib ? Las we use this, we have no that problem

  public override int GetMaxPacketSize(int channelId = Channels.DefaultReliable)
        {
            // LiteNetLib NetPeer construct calls SetMTU(0), which sets it to
            // NetConstants.PossibleMtu[0] which is 576-68.
            // (bigger values will cause TooBigPacketException even on loopback)
            //
            // see also: https://github.com/RevenantX/LiteNetLib/issues/388
            return NetConstants.PossibleMtu[0];
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions