From 63fdb2a14b38792589482622520a48dfdd0e914a Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 7 Feb 2019 14:02:15 +0100 Subject: net.server_epoll: Use send_timeout for write timout like other implementations (fixes #1316) --- net/server_epoll.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'net') diff --git a/net/server_epoll.lua b/net/server_epoll.lua index ecb72a00..9c4fa581 100644 --- a/net/server_epoll.lua +++ b/net/server_epoll.lua @@ -39,7 +39,7 @@ local default_config = { __index = { read_timeout = 14 * 60; -- How long to wait for a socket to become writable after queuing data to send - write_timeout = 60; + send_timeout = 60; -- Some number possibly influencing how many pending connections can be accepted tcp_backlog = 128; @@ -266,7 +266,7 @@ function interface:setwritetimeout(t) end return end - t = t or cfg.write_timeout; + t = t or cfg.send_timeout; if self._writetimeout then self._writetimeout[1] = gettime() + t; resort_timers = true; -- cgit v1.2.3