Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.

    Read our full announcement for more information and let us know if you have any questions.

Resolved How to check reliable pipeline sending success

Discussion in 'Unity Transport' started by k_gayduk1, Sep 22, 2023.

  1. k_gayduk1


    Dec 21, 2022
    I'm trying to make "reliable" disconnect by making sure that all messages were delivered successfully before dropping connection. But I can't find a way to check if realible pipeline resending any packets at this moment or not. I can get it's send buffer or stats but it seems it doesn't contain any helpfull information
  2. simon-lemay-unity


    Unity Technologies

    Jul 19, 2021
    Ideally you would implement a disconnection handshake over the reliable pipeline, a bit like what TCP does. Basically when you're about to disconnect, send a disconnect message over the reliable pipeline, and have the remote peer answer it with some acknowledgement message. Once you receive the acknowledgement, you know everything has been transmitted and processed and you can safely drop the connection.