mirror of
https://github.com/n0-computer/iroh.git
synced 2026-12-04 08:01:34 +00:00
Merge remote-tracking branch 'origin/main' into refactor-hickory
This commit is contained in:
@@ -7,7 +7,7 @@ This server compiles to a binary `iroh-dns-server`. It needs a config file, of
|
||||
which there are two examples included:
|
||||
|
||||
- [`config.dev.toml`](./config.dev.toml) - suitable for local development
|
||||
- [`config.prod.toml`](./config.dev.toml) - suitable for production, after
|
||||
- [`config.prod.toml`](./config.prod.toml) - suitable for production, after
|
||||
adjusting the domain names and IP addresses
|
||||
|
||||
The server will expose the following services:
|
||||
|
||||
@@ -149,7 +149,7 @@ impl QuicTransportConfig {
|
||||
}
|
||||
|
||||
impl QuicTransportConfigBuilder {
|
||||
/// Create a default [`QuicTransportConfigBuilder`].
|
||||
/// Creates a default [`QuicTransportConfigBuilder`].
|
||||
fn new() -> Self {
|
||||
let mut cfg = noq::TransportConfig::default();
|
||||
// Override some transport config settings.
|
||||
@@ -162,7 +162,7 @@ impl QuicTransportConfigBuilder {
|
||||
Self(cfg)
|
||||
}
|
||||
|
||||
/// Build a [`QuicTransportConfig`] from the builder.
|
||||
/// Builds a [`QuicTransportConfig`] from the builder.
|
||||
pub fn build(self) -> QuicTransportConfig {
|
||||
QuicTransportConfig(Arc::new(self.0))
|
||||
}
|
||||
@@ -357,11 +357,11 @@ impl QuicTransportConfigBuilder {
|
||||
|
||||
/// Period of inactivity before sending a keep-alive packet.
|
||||
///
|
||||
/// Keep-alive packets prevent an inactive but otherwise healthy connection from timing out.
|
||||
/// Keep-alive packets prevent an inactive but otherwise healthy connection from timing
|
||||
/// out. They are important to keep NAT bindings alive and firewalls open.
|
||||
///
|
||||
/// `None` to disable, which is the default. Only one side of any given connection needs keep-alive
|
||||
/// enabled for the connection to be preserved. Must be set lower than the idle_timeout of both
|
||||
/// peers to be effective.
|
||||
/// The default is 5s, please be careful when modifying this as it may affect connection
|
||||
/// stability. Must be set lower than the idle_timeout of both peers to be effective.
|
||||
pub fn keep_alive_interval(mut self, value: Duration) -> Self {
|
||||
self.0.keep_alive_interval(Some(value));
|
||||
self
|
||||
|
||||
Reference in New Issue
Block a user