]> git.ipfire.org Git - thirdparty/tor.git/commit
Bug 1245: Ignore negative and large timeouts.
authorMike Perry <mikeperry-git@fscked.org>
Fri, 7 May 2010 22:42:57 +0000 (15:42 -0700)
committerMike Perry <mikeperry-git@fscked.org>
Mon, 10 May 2010 20:11:46 +0000 (13:11 -0700)
commit728e946efd87d5cd0a9ff073eeeb7b4fe9c3c0db
tree29c64c0dc8fd688ee9a67c8f1622eb1cb608360c
parente40e35507e91e8724a37ef2e6bf5828025f2dbe5
Bug 1245: Ignore negative and large timeouts.

This should prevent some asserts and storage of incorrect build times
for the cases where Tor is suspended during a circuit construction, or
just after completing a circuit. The idea is that if the circuit
build time is much greater than we would have cut it off at, we probably
had a suspend event along this codepath, and we should discard the
value.
src/or/circuitbuild.c
src/or/circuituse.c