chore(tcp): Add tests tcp proxy

This commit is contained in:
Σrebe - Romain GERARD 2023-10-27 21:02:12 +02:00
parent 2f3b797f97
commit 98ee91d174
No known key found for this signature in database
GPG key ID: 7A42B4B97E0332F4
6 changed files with 290 additions and 34 deletions

View file

@ -1,9 +1,7 @@
use fastwebsockets::{Frame, OpCode, Payload, WebSocketError, WebSocketRead, WebSocketWrite};
use futures_util::pin_mut;
use hyper::upgrade::Upgraded;
use std::time::Duration;
use tokio::io::{AsyncRead, AsyncReadExt, AsyncWrite, AsyncWriteExt, ReadHalf, WriteHalf};
use tokio::select;

View file

@ -252,7 +252,7 @@ pub async fn run_server(server_config: Arc<WsServerConfig>) -> anyhow::Result<()
let fut = async move {
if let Err(e) = conn_fut.await {
error!("Error while upgrading cnx to weboscket: {:?}", e);
error!("Error while upgrading cnx to websocket: {:?}", e);
}
}
.instrument(span);