From 5d18697510838f04664a762daac1d4775eed7a2d Mon Sep 17 00:00:00 2001 From: taynpg Date: Mon, 6 Jan 2025 13:41:15 +0800 Subject: [PATCH] =?UTF-8?q?change=EF=BC=9A125=E4=BB=A3=E7=A0=81=E8=AE=A4?= =?UTF-8?q?=E4=B8=BA=E6=98=AF=E6=AD=A3=E5=B8=B8=E9=80=80=E5=87=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- net/net_base.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/net_base.cpp b/net/net_base.cpp index 6f7f2f5..c2a6f0a 100644 --- a/net/net_base.cpp +++ b/net/net_base.cpp @@ -68,6 +68,10 @@ void CTcpClient::async_recv() // 正常中止退出 return; } + if (ec.value() == 125) { + logger_->info("{} exit.", __FUNCTION__); + return; + } logger_->error("{} {} error => {}", __FUNCTION__, ec.value(), ec.message()); } else { buffer_.push(tmp_buf_.data(), length);