-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
Hi,
It seems that the CheckPeerEndpoints function doesn't use the server specified PeerConnectionCheckInterval, causing it to only use the default value of 15 seconds.
netclient/networking/client-ping.go
Line 100 in 13a39d5
| PeerLocalEndpointConnTicker = time.NewTicker(PeerConnectionCheckInterval) |
This should be like in watchPeerConnections
server := config.GetServer(config.CurrServer)
if server == nil {
return
}
if server.PeerConnectionCheckInterval != "" {
sec, err := strconv.Atoi(server.PeerConnectionCheckInterval)
if err == nil && sec > 0 {
networking.PeerConnectionCheckInterval = time.Duration(sec) * time.Second
}
}
autoRelayConnTicker = time.NewTicker(networking.PeerConnectionCheckInterval)
defer autoRelayConnTicker.Stop()Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels