Mercurial > hg > nginx
comparison src/core/ngx_proxy_protocol.h @ 8099:17d6a537fb1b
Increased maximum read PROXY protocol header size.
Maximum size for reading the PROXY protocol header is increased to 4096 to
accommodate a bigger number of TLVs, which are supported since cca4c8a715de.
Maximum size for writing the PROXY protocol header is not changed since only
version 1 is currently supported.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Wed, 02 Nov 2022 13:46:16 +0400 |
parents | cca4c8a715de |
children |
comparison
equal
deleted
inserted
replaced
8098:a2924855f453 | 8099:17d6a537fb1b |
---|---|
11 | 11 |
12 #include <ngx_config.h> | 12 #include <ngx_config.h> |
13 #include <ngx_core.h> | 13 #include <ngx_core.h> |
14 | 14 |
15 | 15 |
16 #define NGX_PROXY_PROTOCOL_MAX_HEADER 107 | 16 #define NGX_PROXY_PROTOCOL_V1_MAX_HEADER 107 |
17 #define NGX_PROXY_PROTOCOL_MAX_HEADER 4096 | |
17 | 18 |
18 | 19 |
19 struct ngx_proxy_protocol_s { | 20 struct ngx_proxy_protocol_s { |
20 ngx_str_t src_addr; | 21 ngx_str_t src_addr; |
21 ngx_str_t dst_addr; | 22 ngx_str_t dst_addr; |