diff options
author | Roman Arutyunyan <arut@nginx.com> | 2023-05-11 19:40:11 +0400 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2023-05-11 19:40:11 +0400 |
commit | 885c4881915e28661f341b9ac3807afb84c8b779 (patch) | |
tree | a21dbe246654401b3815d8cff039c7f53254f36c /src/os/unix/ngx_socket.h | |
parent | a4319bc496264f94ea8a85702d9b5b8098d9d18c (diff) | |
download | nginx-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/os/unix/ngx_socket.h')
0 files changed, 0 insertions, 0 deletions