diff options
author | Roger Dingledine <arma@torproject.org> | 2003-11-18 07:48:00 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-11-18 07:48:00 +0000 |
commit | a3e39b0ceb4478339f9903ab6e01a3984e208d42 (patch) | |
tree | a020d00d6914aef7d85afb17d4256203e4667dce /src/or/or.h | |
parent | bb0e409fbd9416c17b8a4a071b6c8404580077ea (diff) | |
download | tor-a3e39b0ceb4478339f9903ab6e01a3984e208d42.tar tor-a3e39b0ceb4478339f9903ab6e01a3984e208d42.tar.gz |
don't build too many circs at once
expire circs that have been building for too long
svn:r835
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h index fe9196e08..81aae7d10 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -110,7 +110,6 @@ #define CIRC_ID_TYPE_LOWER 0 #define CIRC_ID_TYPE_HIGHER 1 -#define CIRC_ID_TYPE_BOTH 2 #define _CONN_TYPE_MIN 3 #define CONN_TYPE_OR_LISTENER 3 @@ -518,6 +517,9 @@ circuit_t *circuit_get_by_circ_id_conn(circ_id_t circ_id, connection_t *conn); circuit_t *circuit_get_by_conn(connection_t *conn); circuit_t *circuit_get_newest(connection_t *conn, int must_be_open); +void circuit_expire_building(void); +int circuit_count_building(void); + int circuit_deliver_relay_cell(cell_t *cell, circuit_t *circ, int cell_direction, crypt_path_t *layer_hint); int relay_crypt(circuit_t *circ, char *in, int inlen, char cell_direction, |