-
- Downloads
relay: Launch dummy circuit only when descriptor build fails
First, this commit moves the launch_dummy_circuit_as_needed() function into relay_find_addr.c and renames it to relay_addr_learn_from_dirauth(). This is an attempt to centralize anything relate with address discovery in the right module. Second, when building a descriptor and we fail to discover our address, immediately launch a dummy circuit to an authority in an attempt to learn our descriptor. It is still only done every 20 minutes even though the descriptor build is done every minute. We ought to avoid load on the authority and if we can't learn in the first place our address from them, chances are more things are wrong. Related to #40071 Signed-off-by:David Goulet <dgoulet@torproject.org>
Showing
- src/feature/nodelist/routerlist.c 0 additions, 65 deletionssrc/feature/nodelist/routerlist.c
- src/feature/relay/relay_find_addr.c 68 additions, 0 deletionssrc/feature/relay/relay_find_addr.c
- src/feature/relay/relay_find_addr.h 2 additions, 0 deletionssrc/feature/relay/relay_find_addr.h
- src/feature/relay/router.c 3 additions, 1 deletionsrc/feature/relay/router.c
Loading
Please register or sign in to comment