-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor!: disable keep-alives by default
This changes the `keep_alive_interval` set for `Config::default()` to `None`, disabling keep-alives. This is thought to be a more sane default for a library, since keep-alives may otherwise cause connections to stay open forever, leaking resources. It remains easy to opt-in to keep-alives by simply setting `Some(duration)`. BREAKING CHANGE: The `qp2p::config::DEFAULT_KEEP_ALIVE_INTERVAL` constant has been removed, and the default value for `keep_alive_interval` set for `Config::default()` is now `None`, meaning keep-alives are disabled by default.
- Loading branch information
Showing
1 changed file
with
3 additions
and
26 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