[tor-commits] [tor/master] Send long URLs when requesting ordinary server descriptors too.

nickm at torproject.org nickm at torproject.org
Fri Jan 23 15:03:15 UTC 2015


commit 6523eff9b3b5e06521da010e238b4cd23ed24e82
Author: Nick Mathewson <nickm at torproject.org>
Date:   Tue Sep 23 13:04:22 2014 -0400

    Send long URLs when requesting ordinary server descriptors too.
---
 src/or/routerlist.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index ec9e801..e0a55d8 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -4369,7 +4369,10 @@ max_dl_per_request(const or_options_t *options, int purpose)
 {
   int max = 96;
   if (purpose == DIR_PURPOSE_FETCH_MICRODESC) {
-    max = options->TunnelDirConns ? 1000 : 92;
+    max = 92;
+  }
+  if (options->TunnelDirConns) {
+    max = 1000;
   }
   return max;
 }





More information about the tor-commits mailing list