diff options
| author | tv <tv@krebsco.de> | 2026-11-01 20:59:18 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-01 20:59:18 +0100 |
| commit | 83b2f9efbbcedea3297fea6754ea4a0e7ac6b3e0 (patch) | |
| tree | b8dad406e79a23f8bf9ada3cdfb7da345c2ccba6 /src/transport/libp2p/config.rs | |
| parent | 151d0a71ac8aef450c90c243966fb64aa63a63c7 (diff) | |
libp2p: idle timeout follows keepalive
Diffstat (limited to 'src/transport/libp2p/config.rs')
| -rw-r--r-- | src/transport/libp2p/config.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/transport/libp2p/config.rs b/src/transport/libp2p/config.rs index 348a170..712f2e2 100644 --- a/src/transport/libp2p/config.rs +++ b/src/transport/libp2p/config.rs @@ -32,6 +32,9 @@ pub(crate) struct Libp2pConfig { pub(crate) public: bool, /// libp2p's in-memory transport instead of TCP and QUIC: for tests. pub(crate) memory: bool, + /// The node's keepalive interval (`--keepalive`): connections idle for a few of + /// them are closed (`idle_timeout`). + pub(crate) keepalive: Duration, } /// The multiaddrs of option `option`. @@ -138,6 +141,7 @@ impl Libp2pConfig { internet_hosts: settings.libp2p_internet_hosts.clone(), public: settings.libp2p_public, memory: false, + keepalive: settings.keepalive, }) } |
