fix: harden concurrency limits and high-RPM runtime paths

Bound request, stream, queue, and shutdown resource lifetimes. Reduce scheduler and Redis hot-path work and isolate database maintenance. Include regression coverage, load probes, and concurrency audit results.
This commit is contained in:
elky
2026-09-10 08:14:58 +08:00
parent 361952ada9
commit ecc16673eb
149 changed files with 27963 additions and 1926 deletions
+5 -1
View File
@@ -1,11 +1,15 @@
pub mod body;
mod connection;
pub mod middleware;
mod request_id;
pub use body::{
BodyBufferError, BodyBufferPolicy, BodyBufferReservation, BufferedBody,
BodyBufferBudget, BodyBufferError, BodyBufferPolicy, BodyBufferReservation, BufferedBody,
DEFAULT_BODY_BUFFER_PERMIT_BYTES,
};
pub use connection::{
http_connection_limit, AdmittedConnection, HttpConnectionBudget, HttpConnectionBudgetSnapshot,
};
pub use middleware::access_log::{
access_log_middleware, sanitize_access_log_path, should_downgrade_access_log,