summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-02-11 23:15:40 +0000
committerRoger Dingledine <arma@torproject.org>2006-02-11 23:15:40 +0000
commite847085c043757dbf89b79d224c2c628ecd391ca (patch)
treea0ef70e10866fbbb0e5331dca33c8490e31af129 /src/or/or.h
parent484a3f3d77566e83ba3ad36e2c5e79ba32e93816 (diff)
downloadtor-e847085c043757dbf89b79d224c2c628ecd391ca.tar.gz
tor-e847085c043757dbf89b79d224c2c628ecd391ca.zip
When a client asks for an old-style directory and our write bucket
is empty, don't give it to him. This way small servers can continue to serve the directory *sometimes*, without getting overloaded. svn:r5968
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 680a0fb1a3..47c1901eca 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -1635,6 +1635,7 @@ int retry_all_listeners(int force, smartlist_t *replaced_conns,
smartlist_t *new_conns);
int connection_bucket_write_limit(connection_t *conn);
+int global_write_bucket_empty(void);
void connection_bucket_init(void);
void connection_bucket_refill(struct timeval *now);