Search Unity

Bug UnityTransport.SendBatchedMessages function error issue.

Discussion in 'Unity Transport' started by ulralra_unity, Feb 3, 2022.

  1. ulralra_unity

    ulralra_unity

    Joined:
    Apr 9, 2021
    Posts:
    9
    UnityTransport calls m_Driver.BeginSend within the SendBatchedMessages function,
    and for some reason, the result is NetworkVersionMismatch / NetworkStateMismatch.
    In this case, since the packet is returned without being processed in the queue, it will continue to spit out the same error next time and will not be able to process subsequent packets.
     
  2. ulralra_unity

    ulralra_unity

    Joined:
    Apr 9, 2021
    Posts:
    9
    Therefore, if it is not a Overflow error, there should be a process of popping and removing packets from the queue. Please correct it.
     
  3. simon-lemay-unity

    simon-lemay-unity

    Unity Technologies

    Joined:
    Jul 19, 2021
    Posts:
    441
    Good catch! Will fix this. Thanks for the report.