]> git.ipfire.org Git - thirdparty/tor.git/commit
Preserve bridge download status across SETCONF, HUP
authorNick Mathewson <nickm@torproject.org>
Sun, 15 May 2011 16:46:26 +0000 (12:46 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 16 May 2011 00:13:44 +0000 (20:13 -0400)
commit2b9c5ee301f705cbf69c725ca749d4ac752c06d3
treec46ee28c4f21ce5810c70ac7ff85ca3778c284f9
parentbc44393eb59a1d303314b4b646b4d815f4eadc22
Preserve bridge download status across SETCONF, HUP

This code changes it so that we don't remove bridges immediately when
we start re-parsing our configuration.  Instead, we mark them all, and
remove all the marked ones after re-parsing our bridge lines.  As we
add a bridge, we see if it's already in the list.  If so, we just
unmark it.

This new behavior will lose the property we used to have that bridges
were in bridge_list in the same order in which they appeared in the
torrc.  I took a quick look through the code, and I'm pretty sure we
didn't actually depend on that anywhere.

This is for bug 3019; it's a fix on 0.2.0.3-alpha.
changes/bug3019 [new file with mode: 0644]
src/or/circuitbuild.c
src/or/circuitbuild.h
src/or/config.c