diff options
author | Roger Dingledine <arma@torproject.org> | 2003-02-06 08:00:49 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-02-06 08:00:49 +0000 |
commit | ceafe12ed67528ce4dd656f43bccb7c7a9f7317f (patch) | |
tree | 8f95a57e7fc71d62c919057fedb25dad33fcc424 /src/or/connection_exit.c | |
parent | c35373a2cfae66d41e4120469096acde10cea050 (diff) | |
download | tor-ceafe12ed67528ce4dd656f43bccb7c7a9f7317f.tar tor-ceafe12ed67528ce4dd656f43bccb7c7a9f7317f.tar.gz |
make reusing circuits work (and be the default)
performance is better, but not by much. not sure why yet.
svn:r153
Diffstat (limited to 'src/or/connection_exit.c')
-rw-r--r-- | src/or/connection_exit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/connection_exit.c b/src/or/connection_exit.c index 871b789ef..8d3f9ceea 100644 --- a/src/or/connection_exit.c +++ b/src/or/connection_exit.c @@ -164,6 +164,7 @@ int connection_exit_process_data_cell(cell_t *cell, circuit_t *circ) { connection_t *conn; int topic_command; int topic_id; + static num_seen=0; /* an outgoing data cell has arrived */ @@ -173,6 +174,8 @@ int connection_exit_process_data_cell(cell_t *cell, circuit_t *circ) { *cell->payload = 0; topic_id = *(uint32_t *)cell->payload; log(LOG_DEBUG,"connection_exit_process_data_cell(): command %d topic %d", topic_command, topic_id); + num_seen++; + log(LOG_DEBUG,"connection_exit_process_data_cell(): Now seen %d data cells here.", num_seen); circuit_consider_sending_sendme(circ, EDGE_EXIT); |