[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] backport: when we"re deciding whether a stream has enough c...
Update of /home/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/tor-010x/tor/src/or
Modified Files:
Tag: tor-0_1_0-patches
circuituse.c
Log Message:
backport: when we're deciding whether a stream has enough circuits
around that can handle it, count the freshly dirty ones and not
the ones that are so dirty they won't be able to handle it.
Index: circuituse.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/circuituse.c,v
retrieving revision 1.72.2.1
retrieving revision 1.72.2.2
diff -u -d -r1.72.2.1 -r1.72.2.2
--- circuituse.c 1 Dec 2005 01:44:30 -0000 1.72.2.1
+++ circuituse.c 5 Dec 2005 06:03:58 -0000 1.72.2.2
@@ -288,7 +288,7 @@
!circ->marked_for_close &&
circ->purpose == CIRCUIT_PURPOSE_C_GENERAL &&
(!circ->timestamp_dirty ||
- circ->timestamp_dirty + get_options()->MaxCircuitDirtiness < now)) {
+ circ->timestamp_dirty + get_options()->MaxCircuitDirtiness > now)) {
exitrouter = router_get_by_digest(circ->build_state->chosen_exit_digest);
if (exitrouter &&
(!need_uptime || circ->build_state->need_uptime)) {