Welcome! Log In Create A New Profile

Advanced

[nginx] Stream: moved fastopen compatibility check.

Sergey Kandaurov
March 22, 2024 07:20AM
details: https://hg.nginx.org/nginx/rev/6317e21a15e0
branches:
changeset: 9224:6317e21a15e0
user: Roman Arutyunyan <arut@nginx.com>
date: Thu Jan 18 19:12:38 2024 +0400
description:
Stream: moved fastopen compatibility check.

The move makes the code look similar to the corresponding code in http module.

diffstat:

src/stream/ngx_stream_core_module.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)

diffs (29 lines):

diff -r dd516985310f -r 6317e21a15e0 src/stream/ngx_stream_core_module.c
--- a/src/stream/ngx_stream_core_module.c Fri Mar 22 14:53:19 2024 +0400
+++ b/src/stream/ngx_stream_core_module.c Thu Jan 18 19:12:38 2024 +0400
@@ -1215,6 +1215,12 @@ ngx_stream_core_listen(ngx_conf_t *cf, n
}

if (lsopt.type == SOCK_DGRAM) {
+#if (NGX_HAVE_TCP_FASTOPEN)
+ if (lsopt.fastopen != -1) {
+ return "\"fastopen\" parameter is incompatible with \"udp\"";
+ }
+#endif
+
if (backlog) {
return "\"backlog\" parameter is incompatible with \"udp\"";
}
@@ -1244,12 +1250,6 @@ ngx_stream_core_listen(ngx_conf_t *cf, n
if (lsopt.proxy_protocol) {
return "\"proxy_protocol\" parameter is incompatible with \"udp\"";
}
-
-#if (NGX_HAVE_TCP_FASTOPEN)
- if (lsopt.fastopen != -1) {
- return "\"fastopen\" parameter is incompatible with \"udp\"";
- }
-#endif
}

for (n = 0; n < u.naddrs; n++) {
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Stream: moved fastopen compatibility check.

Sergey Kandaurov 107 March 22, 2024 07:20AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 192
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready