Opened 16 months ago

Last modified 16 months ago

#25676 new defect

When a client asks for a gzip-encoded consensus, the server sends zlib

Reported by: teor Owned by:
Priority: Low Milestone: Tor: unspecified
Component: Core Tor/Tor Version: Tor: 0.3.2.10
Severity: Minor Keywords: tor-compression, tor-dir
Cc: ahf Actual Points:
Parent ID: Points: 0.5
Reviewer: Sponsor:

Description (last modified by teor)

$ curl -s -O --header "Accept-Encoding: gzip" 91.121.230.208:9030/tor/status-vote/current/consensus && file consensus
Accept-Encoding: gzip
Requested: status-vote/current/consensus
consensus: zlib compressed data

But when the client asks for gzip-encoded descriptors, the server sends gzip:

Accept-Encoding: gzip
Requested: server/authority
authority: gzip compressed data, max compression, from Unix

See https://trac.torproject.org/projects/tor/ticket/25667#comment:11 for a full list of requested encodings, documents, and served formats.

I think this is a minor bug with no impact, because tor clients will decompress the zlib anyway. (I don't know if tor clients ever ask for gzip without zlib.)

But I'd like someone who knows the compression code better to confirm.

Child Tickets

Change History (3)

comment:1 Changed 16 months ago by teor

Description: modified (diff)

Edit description: remove extra output lines

comment:2 Changed 16 months ago by arma

Cc: ahf added

adding ahf as the "someone who knows the compression code"

comment:3 Changed 16 months ago by teor

Priority: MediumLow
Severity: NormalMinor

nickm said on tor-dev that this is a minor issue.

Note: See TracTickets for help on using tickets.