MINOR: listener: move the NOLINGER option to the bind_conf
It's currently declared per-frontend, though it would make sense to
support it per-line but in no case per-listener. Let's move the option
to a bind_conf option BC_O_NOLINGER.
diff --git a/src/cfgparse.c b/src/cfgparse.c
index 666d5c3..6b0a1e5 100644
--- a/src/cfgparse.c
+++ b/src/cfgparse.c
@@ -4288,6 +4288,8 @@
if (!bind_conf->maxaccept)
bind_conf->maxaccept = global.tune.maxaccept ? global.tune.maxaccept : MAX_ACCEPT;
bind_conf->accept = session_accept_fd;
+ if (curproxy->options & PR_O_TCP_NOLING)
+ bind_conf->options |= BC_O_NOLINGER;
}
/* adjust this proxy's listeners */
@@ -4310,9 +4312,6 @@
memprintf(&listener->name, "sock-%d", listener->luid);
}
- if (curproxy->options & PR_O_TCP_NOLING)
- listener->options |= LI_O_NOLINGER;
-
#ifdef USE_QUIC
if (listener->flags & LI_F_QUIC_LISTENER) {
if (!global.cluster_secret) {