]> git.ipfire.org Git - thirdparty/tor.git/commit
Prop210: Add schedules for simultaneous client consensus downloads
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>
Mon, 7 Dec 2015 06:55:38 +0000 (17:55 +1100)
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>
Tue, 15 Dec 2015 17:37:49 +0000 (04:37 +1100)
commit35bbf2e4a4e8ccbc4126ebffda67c48989ec2f06
treefd5350e11f9c31c0e59b3eb9c0f8189daf1eea94
parentd3546aa92bf5c7c1435381b33a42f2a4a3d3c2f5
Prop210: Add schedules for simultaneous client consensus downloads

Prop210: Add attempt-based connection schedules

Existing tor schedules increment the schedule position on failure,
then retry the connection after the scheduled time.

To make multiple simultaneous connections, we need to increment the
schedule position when making each attempt, then retry a (potentially
simultaneous) connection after the scheduled time.

(Also change find_dl_schedule_and_len to find_dl_schedule, as it no
longer takes or returns len.)

Prop210: Add multiple simultaneous consensus downloads for clients

Make connections on TestingClientBootstrapConsensus*DownloadSchedule,
incrementing the schedule each time the client attempts to connect.

Check if the number of downloads is less than
TestingClientBootstrapConsensusMaxInProgressTries before trying any
more connections.
12 files changed:
changes/bug4483-multiple-consensus-downloads [new file with mode: 0644]
doc/tor.1.txt
src/common/torint.h
src/or/config.c
src/or/directory.c
src/or/directory.h
src/or/main.c
src/or/networkstatus.c
src/or/networkstatus.h
src/or/or.h
src/or/routerlist.c
src/test/test_dir.c