pub async fn forward(
client_stream: TcpStream,
client_addr: SocketAddr,
config: &Config,
pools: &Arc<PoolManager>,
listeners: &ListenerManager,
auth: &Authenticator,
clients: &Arc<ClientRegistry>,
) -> Result<()>Expand description
Accept a client connection, run the PostgreSQL startup handshake,
authenticate, and forward traffic until the client disconnects.
Wraps the whole session in the root proxy.client span so every
nested span (setup, auth, checkout, transaction, statement) appears
under a single trace from accept through cleanup.