aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitlist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-03-25 17:49:44 -0400
committerNick Mathewson <nickm@torproject.org>2011-03-25 18:32:28 -0400
commitf3b89c114112987b74bb0632cfe47a3a17859adb (patch)
tree54dfe88b2ef908c6b2b9f69252fca4d94e33a609 /src/or/circuitlist.c
parentd38030381b04263f76ce7f8ed2d6ceefc4ce363f (diff)
downloadtor-f3b89c114112987b74bb0632cfe47a3a17859adb.tar.gz
tor-f3b89c114112987b74bb0632cfe47a3a17859adb.zip
Add XXX023s for our timestamp_dirty abuse.
Diffstat (limited to 'src/or/circuitlist.c')
-rw-r--r--src/or/circuitlist.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c
index b4f5f45615..521c21e179 100644
--- a/src/or/circuitlist.c
+++ b/src/or/circuitlist.c
@@ -1023,6 +1023,7 @@ circuit_mark_all_unused_circs(void)
* This is useful for letting the user change pseudonyms, so new
* streams will not be linkable to old streams.
*/
+/* XXX023 this is a bad name for what this function does */
void
circuit_expire_all_dirty_circs(void)
{
@@ -1033,6 +1034,8 @@ circuit_expire_all_dirty_circs(void)
if (CIRCUIT_IS_ORIGIN(circ) &&
!circ->marked_for_close &&
circ->timestamp_dirty)
+ /* XXXX023 This is a screwed-up way to say "This is too dirty
+ * for new circuits. */
circ->timestamp_dirty -= options->MaxCircuitDirtiness;
}
}