tun2: be less greedy about failure checking
This commit is contained in:
parent
116c3e6516
commit
35d2d72e7f
|
@ -157,7 +157,7 @@ func (s *Server) ListenAndServe() error {
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
for {
|
for {
|
||||||
time.Sleep(time.Second)
|
time.Sleep(5 * time.Second)
|
||||||
|
|
||||||
now := time.Now()
|
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
|
user: defaultUser, // XXX RIP replace this with the actual token user once users are implemented
|
||||||
domain: auth.Domain,
|
domain: auth.Domain,
|
||||||
cancel: cancel,
|
cancel: cancel,
|
||||||
detector: failure.New(15, 3),
|
detector: failure.New(15, 1),
|
||||||
}
|
}
|
||||||
|
|
||||||
ln.Log(ln.F{
|
ln.Log(ln.F{
|
||||||
|
|
Loading…
Reference in New Issue