diff options
author | joe <joe@jerkface.net> | 2018-06-20 00:29:01 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2018-06-20 00:29:01 -0400 |
commit | 1844a59b6abb02017eef7be00b1efb6bbc681f4b (patch) | |
tree | a85294a9699d4d75ba9d3482e1c1c75038828947 /OnionRouter.hs | |
parent | b7ca0fee54bc0f5a169972d559e7ca8c4c2b479f (diff) |
Less sensitive rebuild triggers for onion routes.
Diffstat (limited to 'OnionRouter.hs')
-rw-r--r-- | OnionRouter.hs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/OnionRouter.hs b/OnionRouter.hs index 17cea8e8..1d43d05f 100644 --- a/OnionRouter.hs +++ b/OnionRouter.hs | |||
@@ -428,9 +428,12 @@ hookQueries or t8 tmethods = TransactionMethods | |||
428 | case rr of | 428 | case rr of |
429 | RouteRecord{ responseCount = 0 | 429 | RouteRecord{ responseCount = 0 |
430 | , timeoutCount = c | 430 | , timeoutCount = c |
431 | , routeVersion = v } | c >= 2 -> expireRoute | ||
432 | RouteRecord{ timeoutCount = c | ||
433 | , routeVersion = v } | c >= 5 -> expireRoute | 431 | , routeVersion = v } | c >= 5 -> expireRoute |
432 | RouteRecord{ responseCount = 1 | ||
433 | , timeoutCount = c | ||
434 | , routeVersion = v } | c >= 10 -> expireRoute | ||
435 | RouteRecord{ timeoutCount = c | ||
436 | , routeVersion = v } | c >= 20 -> expireRoute | ||
434 | _ -> return () | 437 | _ -> return () |
435 | writeTChan (routeLog or) $ "ONION query can " ++ show (fmap pendingVersion mb, w8) | 438 | writeTChan (routeLog or) $ "ONION query can " ++ show (fmap pendingVersion mb, w8) |
436 | dispatchCancel tmethods tid d | 439 | dispatchCancel tmethods tid d |