# HG changeset patch # User Kim Alvefur # Date 1549740840 -3600 # Node ID 729de68f0068ae7fc5cd4d077bde648fb58b7447 # Parent b61ba4496923d0ef02d0bb643d90beef42895359 net.server_epoll: Separate timeout for initial connection attempts server_event has this separation already diff -r b61ba4496923 -r 729de68f0068 net/server_epoll.lua --- a/net/server_epoll.lua Sat Feb 09 19:36:35 2019 +0100 +++ b/net/server_epoll.lua Sat Feb 09 20:34:00 2019 +0100 @@ -41,6 +41,9 @@ -- How long to wait for a socket to become writable after queuing data to send send_timeout = 60; + -- How long to wait for a socket to become writable after creation + connect_timeout = 20; + -- Some number possibly influencing how many pending connections can be accepted tcp_backlog = 128; @@ -585,7 +588,7 @@ -- Initialization function interface:init() - self:setwritetimeout(); + self:setwritetimeout(cfg.connect_timeout); return self:add(true, true); end