Skip to content
Snippets Groups Projects
Commit e74f168b authored by David Goulet's avatar David Goulet :panda_face:
Browse files

relay: Avoid log reachability test for bandwidth test circuit


Fixes #40205

Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
parent c618c4f2
No related branches found
No related tags found
No related merge requests found
o Minor bugfixes (relay, logging, reachability):
- When launching bandwidth testing circuit, don't log notice that we are
doing a reachability test. Furthermore, avoid to trigger a
"CHECKING_REACHABILITY" control event. Fixes bug 40205; bugfix on
0.4.5.1-alpha.
......@@ -274,7 +274,12 @@ router_do_orport_reachability_checks(const routerinfo_t *me,
!orport_reachable ? "reachability" : "bandwidth",
family_name, fmt_addrport_ap(ap));
inform_testing_reachability(&ap->addr, ap->port, false);
if (!orport_reachable) {
/* Only log if we are actually doing a reachability test to learn if our
* ORPort is reachable. Else, this prints a log notice if we are simply
* opening a bandwidth testing circuit even do we are reachable. */
inform_testing_reachability(&ap->addr, ap->port, false);
}
circuit_launch_by_extend_info(CIRCUIT_PURPOSE_TESTING, ei,
CIRCLAUNCH_NEED_CAPACITY|
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment