diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-03-25 17:49:44 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-03-25 18:32:28 -0400 |
commit | f3b89c114112987b74bb0632cfe47a3a17859adb (patch) | |
tree | 54dfe88b2ef908c6b2b9f69252fca4d94e33a609 /src/or/connection_edge.c | |
parent | d38030381b04263f76ce7f8ed2d6ceefc4ce363f (diff) | |
download | tor-f3b89c114112987b74bb0632cfe47a3a17859adb.tar.gz tor-f3b89c114112987b74bb0632cfe47a3a17859adb.zip |
Add XXX023s for our timestamp_dirty abuse.
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r-- | src/or/connection_edge.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index c75c06bc60..af0cfbe14c 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -517,6 +517,7 @@ connection_ap_expire_beginning(void) /* kludge to make us not try this circuit again, yet to allow * current streams on it to survive if they can: make it * unattractive to use for new streams */ + /* XXXX023 this is a kludgy way to do this. */ tor_assert(circ->timestamp_dirty); circ->timestamp_dirty -= options->MaxCircuitDirtiness; /* give our stream another 'cutoff' seconds to try */ @@ -2164,6 +2165,7 @@ connection_ap_handshake_send_begin(edge_connection_t *ap_conn) ap_conn->stream_id = get_unique_stream_id_by_circ(circ); if (ap_conn->stream_id==0) { connection_mark_unattached_ap(ap_conn, END_STREAM_REASON_INTERNAL); + /*XXXX022 _close_ the circuit because it's full? That sounds dumb. */ circuit_mark_for_close(TO_CIRCUIT(circ), END_CIRC_REASON_RESOURCELIMIT); return -1; } |