Skip to main content

serve_connections

Function serve_connections 

Source
async fn serve_connections(
    listener: TcpListener,
    router: Router,
    config: HttpConfig,
    metrics: Arc<RuntimeMetrics>,
    shutdown: CancellationToken,
)
Expand description

Owns HTTP connection tasks so cancelling the listener also closes their sockets.