pub async fn serve_connection(
state: Arc<ProxyState>,
stream: TcpStream,
client_addr: SocketAddr,
)Expand description
Drive a single connection. If the request is a websocket upgrade (and the
daemon allows it), we transparently splice the client and upstream TCP
streams together. Otherwise we fall through to handle_request.