diff options
author | Kim Alvefur <zash@zash.se> | 2022-07-27 08:16:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-27 09:16:43 +0300 |
commit | 0c7df119c2b71bed814db7b3da8fc379131433fe (patch) | |
tree | 56b715e6010d291bd97de35744716f41ebadce19 /src/tcp.c | |
parent | cff09ffb326237fd2edd848b6911521fe3e3d3fc (diff) | |
download | luasocket-0c7df119c2b71bed814db7b3da8fc379131433fe.tar.gz luasocket-0c7df119c2b71bed814db7b3da8fc379131433fe.tar.bz2 luasocket-0c7df119c2b71bed814db7b3da8fc379131433fe.zip |
feat(tcp): Add support for TCP Fast Open
Diffstat (limited to 'src/tcp.c')
-rw-r--r-- | src/tcp.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -109,6 +109,12 @@ static t_opt optset[] = { | |||
109 | {"linger", opt_set_linger}, | 109 | {"linger", opt_set_linger}, |
110 | {"recv-buffer-size", opt_set_recv_buf_size}, | 110 | {"recv-buffer-size", opt_set_recv_buf_size}, |
111 | {"send-buffer-size", opt_set_send_buf_size}, | 111 | {"send-buffer-size", opt_set_send_buf_size}, |
112 | #ifdef TCP_FASTOPEN | ||
113 | {"tcp-fastopen", opt_set_tcp_fastopen}, | ||
114 | #endif | ||
115 | #ifdef TCP_FASTOPEN_CONNECT | ||
116 | {"tcp-fastopen-connect", opt_set_tcp_fastopen_connect}, | ||
117 | #endif | ||
112 | {NULL, NULL} | 118 | {NULL, NULL} |
113 | }; | 119 | }; |
114 | 120 | ||