From 828e54cf1763420b6e04d2dd78eca81bf5e40e4b Mon Sep 17 00:00:00 2001 From: an-tao Date: Wed, 14 May 2025 16:36:30 +0800 Subject: [PATCH] Fix a bug when sending streams --- trantor/net/inner/TcpConnectionImpl.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/trantor/net/inner/TcpConnectionImpl.cc b/trantor/net/inner/TcpConnectionImpl.cc index 6a75707b..b786c762 100644 --- a/trantor/net/inner/TcpConnectionImpl.cc +++ b/trantor/net/inner/TcpConnectionImpl.cc @@ -634,6 +634,10 @@ void TcpConnectionImpl::sendStream( writeBufferList_.push_back(std::move(node)); return; } + else + { + writeBufferList_.push_back(std::move(node)); + } } else {