summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2026-06-23 18:45:17 +0300
committerGitHub <noreply@github.com>2026-06-23 18:45:17 +0300
commit105c2470df751f9bff280255506640e63204e3bb (patch)
tree18e25c127bf66f6316e91cc8646718ff6f34a9a1 /src
parent4e74f21299c77a35115a61908a2c84e390e1f0d1 (diff)
parent4f550fc5184f7d583f5976e801e9cae4d06e0cb6 (diff)
downloadvyos-1x-105c2470df751f9bff280255506640e63204e3bb.tar.gz
vyos-1x-105c2470df751f9bff280255506640e63204e3bb.zip
Merge pull request #5226 from indrajitr/haproxy-websocket
haproxy: T8931: Improve WebSocket support for HAProxy
Diffstat (limited to 'src')
-rw-r--r--src/conf_mode/load-balancing_haproxy.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/conf_mode/load-balancing_haproxy.py b/src/conf_mode/load-balancing_haproxy.py
index 0f31880ba..f95d05151 100644
--- a/src/conf_mode/load-balancing_haproxy.py
+++ b/src/conf_mode/load-balancing_haproxy.py
@@ -149,7 +149,12 @@ def verify(lb):
for group in ['service', 'backend']:
for config_name, config in lb[group].items():
if 'http_response_headers' in config and config['mode'] != 'http':
- raise ConfigError(f'{group} {config_name} must be set to http mode to use http_response_headers!')
+ raise ConfigError(f'{group} {config_name} must be set to http mode to use http-response headers!')
+
+ # Check if http-server-close is configured in any backend where mode != http
+ for config_name, config in lb['backend'].items():
+ if 'http_server_close' in config and config['mode'] != 'http':
+ raise ConfigError(f'backend {config_name} must be set to http mode to use http-server-close!')
def generate(lb):