From 35d2d72e7f4b6da33caf35416850ebfaa7fd55ac Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Wed, 5 Apr 2017 14:40:37 -0700 Subject: [PATCH] tun2: be less greedy about failure checking --- lib/tun2/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tun2/server.go b/lib/tun2/server.go index 50fd649..342ed9b 100644 --- a/lib/tun2/server.go +++ b/lib/tun2/server.go @@ -157,7 +157,7 @@ func (s *Server) ListenAndServe() error { go func() { for { - time.Sleep(time.Second) + time.Sleep(5 * time.Second) now := time.Now() @@ -318,7 +318,7 @@ func (s *Server) HandleConn(c net.Conn, isKCP bool) { user: defaultUser, // XXX RIP replace this with the actual token user once users are implemented domain: auth.Domain, cancel: cancel, - detector: failure.New(15, 3), + detector: failure.New(15, 1), } ln.Log(ln.F{