How to check reliable pipeline sending success

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

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.