From ad186dba8f668413b9c1200491360dfda99c3bb7 Mon Sep 17 00:00:00 2001 From: iamsi Date: Mon, 22 Feb 2021 18:30:03 +0000 Subject: [PATCH] Update comment Adding the comment from upstream. --- src/cprotocol.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cprotocol.cpp b/src/cprotocol.cpp index cf82233..c4c39bb 100644 --- a/src/cprotocol.cpp +++ b/src/cprotocol.cpp @@ -184,6 +184,10 @@ void CProtocol::OnDvLastFramePacketIn(std::unique_ptr &Frame stream->Unlock(); // Don't close yet, this stops the last packet relfection bug that was fixed in upstream by the same change. + // Don't close the stream yet but rely on CheckStreamsTimeout + // mechanism, so the stream will be closed after the queues have + // been sinked out. This avoid last packets to be send back + // to transmitting client (master) } // else