From 2e2b7de3fe76f06075f5d6314fceae02c7177acd Mon Sep 17 00:00:00 2001 From: Jack Wampler Date: Mon, 17 May 2021 11:10:19 -0600 Subject: [PATCH] update default registration tracking timeout from 2 mins to 6 hrs (#88) --- application/lib/registration.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/lib/registration.go b/application/lib/registration.go index a6500e18..02cef2c3 100644 --- a/application/lib/registration.go +++ b/application/lib/registration.go @@ -633,7 +633,7 @@ func (r *RegisteredDecoys) getExpiredRegistrations() []string { r.m.RLock() defer r.m.RUnlock() - const regTimeout = time.Minute * 2 + const regTimeout = time.Hour * 6 var cutoff = time.Now().Add(-regTimeout) var expiredRegTimeoutIndices = []string{} @@ -712,7 +712,7 @@ func registerForDetector(reg *DecoyRegistration) { return } - duration := uint64(3 * time.Minute.Nanoseconds()) + duration := uint64(6 * time.Hour.Nanoseconds()) src := reg.registrationAddr.String() phantom := reg.DarkDecoy.String() msg := &pb.StationToDetector{