From 62c84026f66fd17d7e5975dc948b4c8abfbc170f Mon Sep 17 00:00:00 2001 From: nils <48135649+Nilstrieb@users.noreply.github.com> Date: Tue, 7 Mar 2023 15:05:55 +0100 Subject: [PATCH] loop --- hyper/src/server/conn.rs | 12 ------------ hyper/src/server/shutdown.rs | 5 +---- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/hyper/src/server/conn.rs b/hyper/src/server/conn.rs index 4b91c3c..407ee17 100644 --- a/hyper/src/server/conn.rs +++ b/hyper/src/server/conn.rs @@ -76,18 +76,6 @@ pub use super::tcp::{AddrIncoming, AddrStream}; #[cfg_attr(docsrs, doc(cfg(any(feature = "http1", feature = "http2"))))] pub(crate) struct Http { pub(crate) exec: E, - h1_half_close: bool, - h1_keep_alive: bool, - h1_title_case_headers: bool, - h1_preserve_header_case: bool, - #[cfg(all(feature = "http1", feature = "runtime"))] - h1_header_read_timeout: Option, - h1_writev: Option, - #[cfg(feature = "http2")] - h2_builder: proto::h2::server::Config, - mode: ConnectionMode, - max_buf_size: Option, - pipeline_flush: bool, } /// The internal mode of HTTP protocol which indicates the behavior when a parse error occurs. #[cfg(any(feature = "http1", feature = "http2"))] diff --git a/hyper/src/server/shutdown.rs b/hyper/src/server/shutdown.rs index 8bb658c..120bf18 100644 --- a/hyper/src/server/shutdown.rs +++ b/hyper/src/server/shutdown.rs @@ -48,10 +48,7 @@ where S::ResBody: 'static, ::Error: Into>, { - type Future = Watching< - UpgradeableConnection, - fn(Pin<&mut UpgradeableConnection>), - >; + type Future = (); fn watch(&self) -> Self::Future { loop {} }