mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-01 05:32:19 +00:00
This is now a very simple option serving multiple purposes: * It allows for stable (integration) tests involving a Swarm, which are otherwise subject to race conditions due to the connection being allowed to terminate at any time with `KeepAlive::No` (which remains the default). * It makes for a more entertaining ping example which continuously sends pings. * Maybe someone wants to use the ping protocol for application-layer connection keep-alive after all.