tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 67155069de2a15eb345820806283ed3f00f777fe
parent dc247645dfd3f78866a71a3e8f665dd698e88d87
Author: Valentin Gosu <valentin.gosu@gmail.com>
Date:   Tue,  4 Nov 2025 07:56:34 +0000

Bug 1992996 - Stop polling UDP socket when H3 session is closed r=mxinden

Differential Revision: https://phabricator.services.mozilla.com/D269889

Diffstat:
Mnetwerk/test/http3server/src/main.rs | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/netwerk/test/http3server/src/main.rs b/netwerk/test/http3server/src/main.rs @@ -1270,6 +1270,14 @@ impl HttpServer for Http3ConnectProxyServer { // TODO: effectively breaks backpressure. udp_socket.send_buffer.push_back(datagram); } + Http3ServerEvent::ConnectUdp(ConnectUdpServerEvent::SessionClosed { + session, + reason, + headers: _, + }) => { + qdebug!("ConnectUdp session closed: {:?} reason: {:?}", session, reason); + self.udp_sockets.remove(&session.stream_id()); + } Http3ServerEvent::StateChange { .. } | Http3ServerEvent::PriorityUpdate { .. } => {} Http3ServerEvent::StreamReset { stream, error } => { qtrace!("Http3ServerEvent::StreamReset {:?} {:?}", stream, error); @@ -1282,7 +1290,6 @@ impl HttpServer for Http3ConnectProxyServer { ); } Http3ServerEvent::WebTransport(_) => {} - Http3ServerEvent::ConnectUdp(_) => {} } } }