Getting TCP reset using tokio_boring + Hyper on the server when closing connections #3400
-
Hello Hyper devs,
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Does this happen with other TLS implementations? Or without TLS? That could help identify where the problem is. |
Beta Was this translation helpful? Give feedback.
I solved this (mostly) through a hacky method. I created a wrapper over tokio's TcpStream with a cancellation token, before calling graceful_shutdown(), I cancel the token first to signal the wrapper to block all write attempts. Now I have this nice TCP closing process:
Thank you a lot for creating this library, I switched from C++ to Rust almost entirely because of Hyper.