From 6bafd05c658cbce7455399b3cb84e52410fb3253 Mon Sep 17 00:00:00 2001 From: Cloud Wu Date: Thu, 17 Jul 2014 17:35:36 +0800 Subject: [PATCH] don't support ip:port --- lualib/socketchannel.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lualib/socketchannel.lua b/lualib/socketchannel.lua index c2886e31..62818613 100644 --- a/lualib/socketchannel.lua +++ b/lualib/socketchannel.lua @@ -161,9 +161,7 @@ local function connect_backup(self) host, port = addr.host, addr.port else host = addr - if not addr:find(":", 1, true) then - port = self.__port - end + port = self.__port end skynet.error("socket: connect to backup host", host, port) local fd = socket.open(host, port) @@ -198,6 +196,7 @@ local function connect_once(self) if not ok then close_channel_socket(self) if message ~= socket_error then + self.__authcoroutine = false skynet.error("socket: auth failed", message) end end