Add "tcp-keepidle", "tcp-keepcnt" and "tcp-keepintvl" options

This commit is contained in:
Victor Seva 2014-12-05 13:17:50 +01:00
parent 5edf093643
commit 2906d6a522
5 changed files with 81 additions and 1 deletions

View file

@ -7,7 +7,9 @@ port = 8765
function options(o)
print("options for", o)
for _, opt in ipairs{"keepalive", "reuseaddr", "tcp-nodelay"} do
for _, opt in ipairs{
"keepalive", "reuseaddr",
"tcp-nodelay", "tcp-keepidle", "tcp-keepcnt", "tcp-keepintvl"} do
print("getoption", opt, o:getoption(opt))
end