From 27075d159633b28e4c58c3e192260bb1145d2090 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 5 Apr 2021 21:42:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E6=8E=89=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/websocket.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Zframework/websocket.lua b/Zframework/websocket.lua index a0f30002..78d5200d 100644 --- a/Zframework/websocket.lua +++ b/Zframework/websocket.lua @@ -157,10 +157,10 @@ while true do--Running --Receive data local s,_,p=SOCK:receive(length) if s then - print(("%s[%d]:%s"):format(threadName,length,s)) + -- print(("%s[%d]:%s"):format(threadName,length,s)) res=s elseif p then--UNF head - print(("%s[%d/%d]:%s"):format(threadName,#p,length,p)) + -- print(("%s[%d/%d]:%s"):format(threadName,#p,length,p)) UFF=true sBuffer=sBuffer..p length=length-#p @@ -183,21 +183,21 @@ while true do--Running elseif op==0 then--0=continue lBuffer=lBuffer..res if fin then - -- print("FIN=1 (c") + -- print("FIN=1 (c") readCHN:push(lBuffer) lBuffer="" else - -- print("FIN=0 (c") + -- print("FIN=0 (c") end else readCHN:push(op) if fin then - -- print("OP: "..op.."\tFIN=1") + -- print("OP: "..op.."\tFIN=1") readCHN:push(res) else - -- print("OP: "..op.."\tFIN=0") + -- print("OP: "..op.."\tFIN=0") sBuffer=res - -- print("START pack: "..res) + -- print("START pack: "..res) end end end