-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(iroh): remove
quinn::Endpoint::wait_idle
from `iroh::Endpoint::…
…close` process (#3165) ## Description `quinn::Endpoint::wait_idle` adds a minimum 3 second closing time to `iroh::Endpoint::close` if you have any connections that have not closed gracefully. While we *want* users to close connections gracefully, we should also not be forcing users to wait 3 seconds to close the `iroh::Endpoint` if a connection has "gone wrong" if they don't want to. So instead, we are taking out `quinn::Endpoint::wait_idle` and adding more context for how to close a connection gracefully. ## Notes & open questions Before 1.0 we will be re-visiting closing to make sure the APIs make sense. ## Change checklist - [x] Self-review. - [x] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. --------- Co-authored-by: “ramfox” <“kasey@n0.computer”>
- Loading branch information
Showing
2 changed files
with
25 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters