-
-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Await connection drain #1665
Comments
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 I guess that might perfectly work as well. Thanks |
Anyway, could it maybe be interesting to have also on |
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 :)
The text was updated successfully, but these errors were encountered: