[tor-commits] [metrics-db/master] Disable compression when downloading extra-info descriptors.

karsten at torproject.org karsten at torproject.org
Sun Apr 3 11:06:37 UTC 2011


commit 7fe22d2bbbba84a5f59bbf496858832b2fe761b1
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Sun Apr 3 13:05:54 2011 +0200

    Disable compression when downloading extra-info descriptors.
---
 .../ernie/db/RelayDescriptorDownloader.java        |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/org/torproject/ernie/db/RelayDescriptorDownloader.java b/src/org/torproject/ernie/db/RelayDescriptorDownloader.java
index ebbf761..190d1ae 100644
--- a/src/org/torproject/ernie/db/RelayDescriptorDownloader.java
+++ b/src/org/torproject/ernie/db/RelayDescriptorDownloader.java
@@ -623,7 +623,8 @@ public class RelayDescriptorDownloader {
     huc.connect();
     int response = huc.getResponseCode();
     if (response == 200) {
-      BufferedInputStream in = downloadCompressed
+      BufferedInputStream in = this.downloadCompressed &&
+          !resource.startsWith("/tor/extra/")
           ? new BufferedInputStream(new InflaterInputStream(
           huc.getInputStream()))
           : new BufferedInputStream(huc.getInputStream());



More information about the tor-commits mailing list