Skip to content

Commit

Permalink
propagate errors from proxied sockets
Browse files Browse the repository at this point in the history
  • Loading branch information
rgbkrk committed Dec 30, 2024
1 parent ab55c51 commit de70ebe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,8 @@ pub async fn proxy<Frontend: SocketSend + SocketRecv, Backend: SocketSend + Sock
}
backend.send(message).await?;
}
Err(_) => {
todo!()
Err(e) => {
return Err(e);
}
}
},
Expand All @@ -370,8 +370,8 @@ pub async fn proxy<Frontend: SocketSend + SocketRecv, Backend: SocketSend + Sock
}
frontend.send(message).await?;
}
Err(_) => {
todo!()
Err(e) => {
return Err(e);
}
}
}
Expand Down

0 comments on commit de70ebe

Please sign in to comment.