0.34.6_repo_cleanup

This commit is contained in:
Mateusz Gruszczyński committed 2026-10-22 09:31:15 +02:00
1 parent ce1a90397c
commit 133d2f0f91
273 files changed
+5969 -6926

No files matched your search

-7
View File
@@ -18,8 +18,6 @@ async fn serve_inner(
_ = tasks.join_next(), if !tasks.is_empty() => {},
accepted = listener.accept() => {
let (stream, peer) = accepted.context("listener accept failed")?;
// Never substitute the wildcard listener address or a forwarded
// header for the destination IP of this accepted connection.
let local = stream.local_addr().context("accepted local address unavailable")?;
let Ok(permit) = permits.clone().try_acquire_owned() else {
if let Some(m) = &metrics { m.rejected_connections.fetch_add(1, Ordering::Relaxed); }
@@ -47,8 +45,6 @@ async fn serve_inner(
tasks.spawn(async move {
match tls {
Some(TlsMode::Frontend(state, http2)) => {
// Read ClientHello before committing to ALPN so a vhost can opt out
// of HTTP/2 or narrow TLS policy while sharing one TLS listener.
let deadline = tokio::time::Instant::now() + Duration::from_secs(10);
let acceptor = tokio_rustls::LazyConfigAcceptor::new(
rustls::server::Acceptor::default(),
@@ -245,9 +241,6 @@ async fn serve_inner(
&& frontend_state
.as_ref()
.is_some_and(|state| state.config.load().websocket_rfc8441_on(local, false));
// The existing Hyper transport remains untouched when the
// option is disabled. Connections opened after a hot config
// change acquire a new bridge automatically.
#[cfg(target_os = "linux")]
if !prior_h2 && frontend_state.as_ref().is_some_and(|state| {
state.config.load().web_php_services.values()