diff options
| author | Victor Seva <linuxmaniac@torreviejawireless.org> | 2014-12-05 13:17:50 +0100 |
|---|---|---|
| committer | Victor Seva <linuxmaniac@torreviejawireless.org> | 2014-12-05 13:17:50 +0100 |
| commit | 2906d6a5227df25f14305c373fdde057f388d363 (patch) | |
| tree | 2f76f59323008656a23830f0efc9c3d3aff95774 /test | |
| parent | 5edf093643cceb329392aec9606ab3988579b821 (diff) | |
| download | luasocket-2906d6a5227df25f14305c373fdde057f388d363.tar.gz luasocket-2906d6a5227df25f14305c373fdde057f388d363.tar.bz2 luasocket-2906d6a5227df25f14305c373fdde057f388d363.zip | |
Add "tcp-keepidle", "tcp-keepcnt" and "tcp-keepintvl" options
Diffstat (limited to 'test')
| -rwxr-xr-x | test/tcp-getoptions | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/tcp-getoptions b/test/tcp-getoptions index f9b3d1b..777ccc3 100755 --- a/test/tcp-getoptions +++ b/test/tcp-getoptions | |||
| @@ -7,7 +7,9 @@ port = 8765 | |||
| 7 | function options(o) | 7 | function options(o) |
| 8 | print("options for", o) | 8 | print("options for", o) |
| 9 | 9 | ||
| 10 | for _, opt in ipairs{"keepalive", "reuseaddr", "tcp-nodelay"} do | 10 | for _, opt in ipairs{ |
| 11 | "keepalive", "reuseaddr", | ||
| 12 | "tcp-nodelay", "tcp-keepidle", "tcp-keepcnt", "tcp-keepintvl"} do | ||
| 11 | print("getoption", opt, o:getoption(opt)) | 13 | print("getoption", opt, o:getoption(opt)) |
| 12 | end | 14 | end |
| 13 | 15 | ||
