Skip to main content

forward

Function forward 

Source
pub async fn forward(
    client: &mut Framed<TcpStream, FrontendCodec>,
    server: &mut ServerConn,
) -> Result<()>
Expand description

Forward messages between client and server for the lifetime of the session.

Terminate from the client is intercepted so the server connection can be returned to the pool rather than closed.