Open BiagioFesta opened 1 year ago
Call wait_idle() on the Endpoint? Or do you specifically need this for a connection only?
https://github.com/quinn-rs/quinn/blob/main/quinn/src/endpoint.rs#L283C1-L283C1 ?
Nice, I was not aware about that method on Endpoint
.
I guess that might perfectly work as well.
Thanks
Anyway, could it maybe be interesting to have also on Connection
as client code might easily drop the endpoint. Or cleanup a single connection from server.
I am wondering if it mighty worth it to have a future to await the draining of the connection (if such possibility does not exist yet).
The scenario is the following:
The
CLOSE
frame might not be sent if program terminates before driver flushes egress.On top of my head, I was thinking something like:
Feel free to close this issue in case, it is just a very minor concern :)