From e847085c043757dbf89b79d224c2c628ecd391ca Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sat, 11 Feb 2006 23:15:40 +0000 Subject: 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 --- src/or/or.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/or/or.h') 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); -- cgit v1.2.3-54-g00ecf