summaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-06-22 12:36:06 -0400
committerNick Mathewson <nickm@torproject.org>2009-06-22 12:36:06 -0400
commit3f4f6f907539f7fa7ef4a292a70431ed6ab9628a (patch)
tree75cc0a503f2e4ef1a43982c3b4390bf93cf62adc /src/or/directory.c
parent32e86c3bf1989b64282a5748bc31d97e9e2be870 (diff)
parent262455527a82d1a9d482e3df32651700b2ba8c6e (diff)
downloadtor-3f4f6f907539f7fa7ef4a292a70431ed6ab9628a.tar.gz
tor-3f4f6f907539f7fa7ef4a292a70431ed6ab9628a.zip
Merge commit 'origin/maint-0.2.1'
Conflicts: ChangeLog
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 1b972a345b..daf2a15762 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -2407,13 +2407,9 @@ directory_handle_command_get(dir_connection_t *conn, const char *headers,
dlen = strlen(frontpage);
/* Let's return a disclaimer page (users shouldn't use V1 anymore,
and caches don't fetch '/', so this is safe). */
- if (global_write_bucket_low(TO_CONN(conn), dlen, 1)) {
- log_info(LD_DIRSERV,
- "Client asked for DirPortFrontPage content, but we've been "
- "writing too many bytes lately. Sending 503 Dir busy.");
- write_http_status_line(conn, 503, "Directory busy, try again later");
- goto done;
- }
+
+ /* [We don't check for write_bucket_low here, since we want to serve
+ * this page no matter what.] */
note_request(url, dlen);
write_http_response_header_impl(conn, dlen, "text/html", "identity",
NULL, DIRPORTFRONTPAGE_CACHE_LIFETIME);