Tue, 05 May 2015 01:08:20 +0200
verse: Enable TCP keepalives
init.lua | file | annotate | diff | comparison | revisions |
--- a/init.lua Fri May 01 23:33:08 2015 +0200 +++ b/init.lua Tue May 05 01:08:20 2015 +0200 @@ -119,6 +119,7 @@ -- Create and initiate connection local conn = socket.tcp() conn:settimeout(0); + conn:setoption("keepalive", true); local success, err = conn:connect(connect_host, connect_port); if not success and err ~= "timeout" then