You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote a custom acceptor that enforces client hostname checking during mTLS. I noticed in serve that errors from the acceptor are ignored, leading the the socket being closed with out reporting an error back to the client. It would be helpful to report these errors back to the client before closing the connection.
serve in server.rs
tokio::spawn(asyncmove{ifletOk((stream, send_service)) = acceptor.accept(addr_stream, service).await// ^^^^ maybe match on the result and write the error down the socket before closing the connection.
.....
The text was updated successfully, but these errors were encountered:
Hi there,
I wrote a custom acceptor that enforces client hostname checking during mTLS. I noticed in
serve
that errors from the acceptor are ignored, leading the the socket being closed with out reporting an error back to the client. It would be helpful to report these errors back to the client before closing the connection.serve in server.rs
The text was updated successfully, but these errors were encountered: