diff options
| author | Diego Nehab <diego.nehab@gmail.com> | 2019-02-24 17:55:27 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-24 17:55:27 -0300 |
| commit | 699c36c0193c4c9fb4ae8d90c032280f6bacdaf3 (patch) | |
| tree | 568f11832751f7bca69c419c000494256b6b3348 /test | |
| parent | f6ba23d463fde40c47862efafb32de231844c099 (diff) | |
| parent | 2906d6a5227df25f14305c373fdde057f388d363 (diff) | |
| download | luasocket-699c36c0193c4c9fb4ae8d90c032280f6bacdaf3.tar.gz luasocket-699c36c0193c4c9fb4ae8d90c032280f6bacdaf3.tar.bz2 luasocket-699c36c0193c4c9fb4ae8d90c032280f6bacdaf3.zip | |
Merge pull request #116 from linuxmaniac/master
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 | ||
