mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
connect timeout, see #611
This commit is contained in:
@@ -99,7 +99,7 @@ function httpc.request(method, host, url, recvheader, header, content)
|
||||
if async_dns and not hostname:match(".*%d+$") then
|
||||
hostname = dns.resolve(hostname)
|
||||
end
|
||||
local fd = socket.connect(hostname, port)
|
||||
local fd = socket.connect(hostname, port, timeout)
|
||||
local finish
|
||||
if timeout then
|
||||
skynet.timeout(timeout, function()
|
||||
|
||||
Reference in New Issue
Block a user