MCPcopy Create free account
hub / github.com/Hidden-Node/GooseRelayVPN-AndroidClient / recordDialFailure

Method recordDialFailure

internal/exit/exit.go:928–935  ·  view source on GitHub ↗
(target string, err error)

Source from the content-addressed store, hash-verified

926}
927
928func (s *Server) recordDialFailure(target string, err error) {
929 if !isBackoffEligibleDialErr(err) {
930 return
931 }
932 s.mu.Lock()
933 s.dialFail[target] = time.Now().Add(dialFailureBackoff)
934 s.mu.Unlock()
935}
936
937func (s *Server) clearDialFailure(target string) {
938 s.mu.Lock()

Callers 2

routeIncomingMethod · 0.95

Calls 1

isBackoffEligibleDialErrFunction · 0.85

Tested by 1