tor/src/feature/dirclient
Roger Dingledine d66549c208 fetch missing bridge descriptors without delay
Without this change, if we have a working bridge, and we add a new bridge,
we will schedule the fetch attempt for that new bridge descriptor for
three hours(!) in the future.

This change is especially needed because of bug #40396, where if you have
one working bridge and one bridge whose descriptor you haven't fetched
yet, your Tor will stall until you have successfully fetched that new
descriptor -- in this case for hours.

In the old design, we would put off all further bridge descriptor fetches
once we had any working bridge descriptor. In this new design, we make the
decision per bridge based on whether we successfully got *its* descriptor.

To make this work, we need to also call learned_bridge_descriptor() every
time we get a bridge descriptor, not just when it's a novel descriptor.

Fixes bug 40396.

Also happens to fix bug 40495 (redundant descriptor fetches for every
bridge) since now we delay fetches once we succeed.

A side effect of this change is that if we have any configured bridges
that *aren't* working, we will keep trying to fetch their descriptors
on the modern directory retry schedule -- every couple of seconds for
the first half minute, then backing off after that -- which is a lot
faster than before.
2021-10-24 17:40:28 -04:00
..
.may_include practracker: Add missing .may_include files 2019-12-04 12:15:22 -05:00
dir_server_st.h Merge branch 'tor-gitlab/mr/327' 2021-04-23 12:48:55 -04:00
dirclient_modes.c Update copyrights to 2021, using "make update-copyright" 2021-03-12 11:39:23 -05:00
dirclient_modes.h Update copyrights to 2021, using "make update-copyright" 2021-03-12 11:39:23 -05:00
dirclient.c Merge remote-tracking branch 'tor-gitlab/mr/420' 2021-08-18 08:43:31 -04:00
dirclient.h Update copyrights to 2021, using "make update-copyright" 2021-03-12 11:39:23 -05:00
dlstatus.c fetch missing bridge descriptors without delay 2021-10-24 17:40:28 -04:00
dlstatus.h Update copyrights to 2021, using "make update-copyright" 2021-03-12 11:39:23 -05:00
download_status_st.h Update copyrights to 2021, using "make update-copyright" 2021-03-12 11:39:23 -05:00
feature_dirclient.md Doxygen: rename all .dox files to end with .md 2019-11-15 09:28:12 -05:00
include.am Merge branch 'ticket32487_squashed' into ticket32487_squashed_and_merged 2020-01-16 07:57:37 -05:00