mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
在进行https握手时,会有小概率在进行密钥协商前,tcp流卡住,导至不能有效timeout行为 (#1842)
This commit is contained in:
@@ -83,9 +83,6 @@ local function connect(host, timeout)
|
|||||||
end
|
end
|
||||||
-- print("protocol hostname port", protocol, hostname, port)
|
-- print("protocol hostname port", protocol, hostname, port)
|
||||||
local interface = gen_interface(protocol, fd, hostname)
|
local interface = gen_interface(protocol, fd, hostname)
|
||||||
if interface.init then
|
|
||||||
interface.init()
|
|
||||||
end
|
|
||||||
if timeout then
|
if timeout then
|
||||||
skynet.timeout(timeout, function()
|
skynet.timeout(timeout, function()
|
||||||
if not interface.finish then
|
if not interface.finish then
|
||||||
@@ -93,6 +90,9 @@ local function connect(host, timeout)
|
|||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
if interface.init then
|
||||||
|
interface.init()
|
||||||
|
end
|
||||||
return fd, interface, host
|
return fd, interface, host
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user