aboutsummaryrefslogtreecommitdiff
path: root/src/tcp.c
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-07-27 08:16:43 +0200
committerGitHub <noreply@github.com>2022-07-27 09:16:43 +0300
commit0c7df119c2b71bed814db7b3da8fc379131433fe (patch)
tree56b715e6010d291bd97de35744716f41ebadce19 /src/tcp.c
parentcff09ffb326237fd2edd848b6911521fe3e3d3fc (diff)
downloadluasocket-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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tcp.c b/src/tcp.c
index 5876bfb..e24cb0c 100644
--- a/src/tcp.c
+++ b/src/tcp.c
@@ -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