]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Raise MIN_DL_PER_REQUEST to 32
authorNick Mathewson <nickm@torproject.org>
Fri, 11 Aug 2017 17:54:01 +0000 (13:54 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 11 Aug 2017 17:54:01 +0000 (13:54 -0400)
This change should improve overhead for downloading small numbers of
descriptors and microdescriptors by improving compression
performance and lowering directory request overhead.

Closes ticket 23220.

changes/bug23220 [new file with mode: 0644]
src/or/routerlist.c

diff --git a/changes/bug23220 b/changes/bug23220
new file mode 100644 (file)
index 0000000..9c2efc9
--- /dev/null
@@ -0,0 +1,7 @@
+  o Minor features (client directory bandwidth tuning):
+
+    - When downloading (micro)descriptors, don't split the list of
+      descriptors into multiple requests unless there are at least 32
+      descriptors that we want. Previously, we split at 4, not 32, which
+      could lead to significant overhead in HTTP request size and
+      degradation in compression performance. Closes ticket 23220.
index 49caa875fec1e803f968f373aba59f42babd79ad..9894019476d4360bfd326508051c23af99a4b11b 100644 (file)
@@ -4971,8 +4971,9 @@ max_dl_per_request(const or_options_t *options, int purpose)
 }
 
 /** Don't split our requests so finely that we are requesting fewer than
- * this number per server. */
-#define MIN_DL_PER_REQUEST 4
+ * this number per server. (Grouping more than this at once leads to
+ * diminishing returns.) */
+#define MIN_DL_PER_REQUEST 32
 /** To prevent a single screwy cache from confusing us by selective reply,
  * try to split our requests into at least this many requests. */
 #define MIN_REQUESTS 3