pub async fn handle_connection<S: PvStore>(
state: Arc<ServerState<S>>,
stream: TcpStream,
conn_id: u64,
conn_timeout: Duration,
) -> Result<(), Box<dyn Error>>Expand description
Handle a single PVA TCP connection.
This is the main protocol loop: handshake, then dispatch each command
(CreateChannel, GET, PUT, PUT_GET, MONITOR, RPC, etc.) using the
PvStore abstraction.