From 584944d7775baef81a995ac0936e3ef3f0d92b8f Mon Sep 17 00:00:00 2001 From: baiyfcu Date: Wed, 3 Apr 2024 14:35:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=8F=E8=94=BD=E4=BD=BF=E7=94=A8=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89WebSocketSessionBase=E5=88=9B=E5=BB=BAhttp=20?= =?UTF-8?q?server=E6=97=B6ws=E6=94=B6=E6=95=B0=E6=8D=AE=E5=B4=A9=E6=BA=83?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=88=E5=8E=9F=E5=9B=A0=E6=9C=AA=E5=AE=9A?= =?UTF-8?q?=E4=BD=8D=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Http/WebSocketSession.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Http/WebSocketSession.h b/src/Http/WebSocketSession.h index 93bb820e..fc34adb0 100644 --- a/src/Http/WebSocketSession.h +++ b/src/Http/WebSocketSession.h @@ -203,7 +203,8 @@ protected: } //分片缓存太大,需要清空 } - + if (!_session) + break; //最后一个包 if (_payload_cache.empty()) { //这个包是唯一个分片