http socket worker, connection module: add comment about peer addr

This commit is contained in:
Joakim Frostegård 2024-04-14 00:47:57 +02:00
parent b898c53ae1
commit 3e7ad2a9e7

View file

@ -146,6 +146,8 @@ struct Connection<S> {
request_senders: Rc<Senders<ChannelRequest>>,
valid_until: Rc<RefCell<ValidUntil>>,
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<CanonicalSocketAddr>,
peer_port: u16,
request_buffer: Box<[u8; REQUEST_BUFFER_SIZE]>,