0.34.6_repo_cleanup
This commit is contained in:
1 parent
ce1a90397c
commit
133d2f0f91
273 files changed
+5969
-6926
No files matched your search
@@ -34,8 +34,6 @@ where
|
||||
|
||||
async fn wait_for_h2_idle(state: Arc<H2ConnectionState>, idle: Duration) {
|
||||
loop {
|
||||
// Register for a notification before inspecting the state. This avoids
|
||||
// losing the final stream-drop notification between the load and await.
|
||||
let notified = state.notify.notified();
|
||||
tokio::pin!(notified);
|
||||
if state.active_streams.load(Ordering::Acquire) > 0 {
|
||||
@@ -166,8 +164,6 @@ enum TlsMode {
|
||||
Frontend(Arc<App>, bool),
|
||||
Fixed(Arc<rustls::ServerConfig>, Option<Router>),
|
||||
}
|
||||
/// Upgraded tunnels hold this lease after Hyper finishes its HTTP connection.
|
||||
/// This prevents WebSockets from escaping the public connection limit/counter.
|
||||
pub struct ConnectionLease {
|
||||
_permit: OwnedSemaphorePermit,
|
||||
metrics: Option<Arc<Metrics>>,
|
||||
@@ -253,9 +249,6 @@ pub async fn serve_frontend(
|
||||
.await
|
||||
}
|
||||
|
||||
/// Start one compiled frontend listener with its immutable per-listener H2
|
||||
/// lifecycle policy. The public `serve_frontend` wrapper retains the legacy
|
||||
/// global fallback for callers that do not provide a compiled listener plan.
|
||||
pub async fn serve_frontend_with_http2(
|
||||
listener: TcpListener,
|
||||
router: Router,
|
||||
@@ -304,9 +297,6 @@ pub async fn serve_tls(
|
||||
)
|
||||
.await
|
||||
}
|
||||
/// Serve an HTTPS socket while turning accidental/plain HTTP requests on the
|
||||
/// same port into redirects. No administration handler is exposed through the
|
||||
/// plaintext router.
|
||||
pub async fn serve_tls_with_plain_redirect(
|
||||
listener: TcpListener,
|
||||
router: Router,
|
||||
|
||||
Reference in new issue
Block a user