feat(server): configurable TCP listen_backlog

Add [server].listen_backlog (default 1024) for client-facing listen(2)
queue size; use the same value for metrics HTTP listeners. Hot reload
logs restart-required when this field changes.
This commit is contained in:
sintanial
2026-03-27 12:30:11 +03:00
parent a383efcb21
commit 96ae01078c
6 changed files with 24 additions and 4 deletions

View File

@@ -209,6 +209,10 @@ pub(crate) fn default_server_max_connections() -> u32 {
10_000
}
pub(crate) fn default_listen_backlog() -> u32 {
1024
}
pub(crate) fn default_accept_permit_timeout_ms() -> u64 {
DEFAULT_ACCEPT_PERMIT_TIMEOUT_MS
}