mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 20:05:19 +00:00
Reachability: reduce retention to 21s for all peers (verified and unverified) to minimize stale presence
This commit is contained in:
@@ -73,8 +73,8 @@ enum TransportConfig {
|
|||||||
static let bleRSSIHighTimeoutThreshold: Int = -80
|
static let bleRSSIHighTimeoutThreshold: Int = -80
|
||||||
static let blePeerInactivityTimeoutSeconds: TimeInterval = 20.0
|
static let blePeerInactivityTimeoutSeconds: TimeInterval = 20.0
|
||||||
// How long to retain a peer as "reachable" (not directly connected) since lastSeen
|
// How long to retain a peer as "reachable" (not directly connected) since lastSeen
|
||||||
static let bleReachabilityRetentionVerifiedSeconds: TimeInterval = 600.0 // 10 minutes for verified/favorites
|
static let bleReachabilityRetentionVerifiedSeconds: TimeInterval = 21.0 // 21s for verified/favorites
|
||||||
static let bleReachabilityRetentionUnverifiedSeconds: TimeInterval = 120.0 // 2 minutes for unknown/unverified
|
static let bleReachabilityRetentionUnverifiedSeconds: TimeInterval = 21.0 // 21s for unknown/unverified
|
||||||
static let bleFragmentLifetimeSeconds: TimeInterval = 30.0
|
static let bleFragmentLifetimeSeconds: TimeInterval = 30.0
|
||||||
static let bleIngressRecordLifetimeSeconds: TimeInterval = 3.0
|
static let bleIngressRecordLifetimeSeconds: TimeInterval = 3.0
|
||||||
static let bleConnectTimeoutBackoffWindowSeconds: TimeInterval = 120.0
|
static let bleConnectTimeoutBackoffWindowSeconds: TimeInterval = 120.0
|
||||||
|
|||||||
Reference in New Issue
Block a user