Reworked connection code. Pings are now regularly sent out to every connection to check if it remains valid.

Invalid connections are moved to a second list, and eventually dropped if they don't become active.
This commit is contained in:
Kleissner
2021-02-28 20:59:39 +01:00
parent aca6d65044
commit b53ab7c7b3
5 changed files with 365 additions and 158 deletions

View File

@@ -19,4 +19,5 @@ func Init() {
func Connect() {
go bootstrap()
go autoMulticastBroadcast()
go autoPingAll()
}