Skip to main content

Module runtime

Module runtime 

Source
Expand description

Tokio runtime configuration and common utilities for binary targets

This module provides:

  • Testable runtime configuration and builder logic
  • Shared utilities used across multiple binary targets to reduce duplication
  • Shutdown signal handling

Structs§

RuntimeConfig
Runtime configuration

Functions§

bind_listener
Bind TCP listener and log startup information
load_and_log_config
Load configuration and log server information
resolve_listen_address
Extract listen address from CLI args or config
run_accept_loop
Run the main accept loop for client connections
shutdown_signal
Wait for shutdown signal (Ctrl+C or SIGTERM on Unix)
spawn_cache_stats_logger
Spawn background task to periodically log cache statistics
spawn_connection_prewarming
Spawn background task to prewarm connection pools
spawn_shutdown_handler
Spawn graceful shutdown handler
spawn_stats_flusher
Spawn background task to periodically flush connection stats