Currently, scheduleDroppingDeadConnections in NetworkController has the following magic constant:
// A peer should send out sync message to us at least once per settings.syncStatusRefreshStable duration.
// We wait for more, namely settings.syncStatusRefreshStable.toMillis 3
val timeout = settings.syncStatusRefreshStable.toMillis 3
But better to have dedicated setting for detecting inactive connections, e.g. "inactiveConnectionDeadline"
Currently, scheduleDroppingDeadConnections in NetworkController has the following magic constant:
// A peer should send out sync message to us at least once per settings.syncStatusRefreshStable duration. // We wait for more, namely settings.syncStatusRefreshStable.toMillis 3 val timeout = settings.syncStatusRefreshStable.toMillis 3
But better to have dedicated setting for detecting inactive connections, e.g. "inactiveConnectionDeadline"