changeset 11692 | 3fc564f7441b |
parent 11691 | 153d2fdd97d3 |
child 11693 | f9f6e82fb572 |
--- a/net/server_epoll.lua Wed Jul 14 22:09:39 2021 +0200 +++ b/net/server_epoll.lua Wed Jul 14 22:13:30 2021 +0200 @@ -733,6 +733,9 @@ function interface:defaultoptions() if cfg.tcp_keepalive then self:setoption("keepalive", true); + if type(cfg.tcp_keepalive) == "number" then + self:setoption("tcp-keepidle", cfg.tcp_keepalive); + end end end