Skip to main content

create_session

Function create_session 

Source
async fn create_session(
    balancer: &Arc<Balancer>,
    listener: &Arc<UdpSocket>,
    client: SocketAddr,
    idle: Duration,
    epoch: Instant,
) -> Result<Session>
Expand description

Creates a session for client: an ephemeral socket connected to a selected upstream, plus a spawned reader task pumping replies back to the client.