aboutsummaryrefslogtreecommitdiff
path: root/src/stream/ngx_stream_quic_module.c
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2023-05-11 19:40:11 +0400
committerRoman Arutyunyan <arut@nginx.com>2023-05-11 19:40:11 +0400
commit885c4881915e28661f341b9ac3807afb84c8b779 (patch)
treea21dbe246654401b3815d8cff039c7f53254f36c /src/stream/ngx_stream_quic_module.c
parenta4319bc496264f94ea8a85702d9b5b8098d9d18c (diff)
downloadnginx-885c4881915e28661f341b9ac3807afb84c8b779.tar.gz
nginx-885c4881915e28661f341b9ac3807afb84c8b779.zip
QUIC: keep stream sockaddr and addr_text constant.
HTTP and Stream variables $remote_addr and $binary_remote_addr rely on constant client address, particularly because they are cacheable. However, QUIC client may migrate to a new address. While there's no perfect way to handle this, the proposed solution is to copy client address to QUIC stream at stream creation. The change also fixes truncated $remote_addr if migration happened while the stream was active. The reason is addr_text string was copied to stream by value.
Diffstat (limited to 'src/stream/ngx_stream_quic_module.c')
0 files changed, 0 insertions, 0 deletions