We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b54b3b commit 208be03Copy full SHA for 208be03
1 file changed
lualib/skynet/socketchannel.lua
@@ -388,13 +388,17 @@ end
388
389
local function check_connection(self)
390
if self.__sock then
391
+ local authco = self.__authcoroutine
392
if socket.disconnected(self.__sock[1]) then
393
-- closed by peer
394
skynet.error("socket: disconnect detected ", self.__host, self.__port)
395
close_channel_socket(self)
396
+ if authco and authco == coroutine.running() then
397
+ -- disconnected during auth, See #1513
398
+ return false
399
+ end
400
return
401
end
- local authco = self.__authcoroutine
402
if not authco then
403
return true
404
0 commit comments