summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_core_module.h
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2025-10-16 15:22:56 +0000
committerSergey Kandaurov <s.kandaurov@f5.com>2026-03-19 01:13:51 +0400
commit920dc099c130e0ea23eb36becd157a95901aa5a2 (patch)
tree087aa0949e69c5196c325baa49f38603e7a8a1fc /src/http/ngx_http_core_module.h
parenta29476464cc86092135401bdcad91e4d38ac6b6d (diff)
downloadnginx-920dc099c130e0ea23eb36becd157a95901aa5a2.tar.gz
nginx-920dc099c130e0ea23eb36becd157a95901aa5a2.tar.bz2
The "multipath" parameter of the "listen" directive.
When configured, it enables Multipath TCP support on a listen socket. As of now it works on Linux starting with Linux 5.6 and glibc 2.32, where it is enabled with an IPPROTO_MPTCP socket(2) protocol. To avoid EADDRINUSE errors in bind() and listen() when transitioning between sockets with different protocols, SO_REUSEPORT is set on both sockets. See f7f1607bf for potential implications. Based on previous work by Maxime Dourov and Anthony Doeraene.
Diffstat (limited to 'src/http/ngx_http_core_module.h')
-rw-r--r--src/http/ngx_http_core_module.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http_core_module.h b/src/http/ngx_http_core_module.h
index 9be565373..6062d3a23 100644
--- a/src/http/ngx_http_core_module.h
+++ b/src/http/ngx_http_core_module.h
@@ -88,6 +88,7 @@ typedef struct {
int rcvbuf;
int sndbuf;
int type;
+ int protocol;
#if (NGX_HAVE_SETFIB)
int setfib;
#endif