From 99d43388ab7e0976cba5ba486c9c997c29b1bc7f Mon Sep 17 00:00:00 2001 From: zixun Date: Fri, 14 Feb 2020 18:02:31 +0800 Subject: [PATCH] fix handshake error --- lualib/http/websocket.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lualib/http/websocket.lua b/lualib/http/websocket.lua index 58b0c1d8..4f901cee 100755 --- a/lualib/http/websocket.lua +++ b/lualib/http/websocket.lua @@ -247,6 +247,8 @@ local function resolve_accept(self) if not ok then error(s) end + try_handle(self, "close") + return end local header = err