From 3e7ad2a9e7de21581326979df76d972ca17ef533 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Sun, 14 Apr 2024 00:47:57 +0200 Subject: [PATCH] http socket worker, connection module: add comment about peer addr --- crates/http/src/workers/socket/connection.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/http/src/workers/socket/connection.rs b/crates/http/src/workers/socket/connection.rs index eb45538..c2d4089 100644 --- a/crates/http/src/workers/socket/connection.rs +++ b/crates/http/src/workers/socket/connection.rs @@ -146,6 +146,8 @@ struct Connection { request_senders: Rc>, valid_until: Rc>, server_start_instant: ServerStartInstant, + // If we're running behind a reverse proxy, gets set as soon as we get a + // valid requiest. Otherwise, must be set before calling `run`. opt_peer_addr: Option, peer_port: u16, request_buffer: Box<[u8; REQUEST_BUFFER_SIZE]>,