[tor-bugs] #25676 [Core Tor/Tor]: When a client asks for a gzip-encoded consensus, the server sends zlib
Tor Bug Tracker & Wiki
blackhole at torproject.org
Thu Mar 29 21:36:28 UTC 2018
#25676: When a client asks for a gzip-encoded consensus, the server sends zlib
--------------------------------------+----------------------------------
Reporter: teor | Owner: (none)
Type: defect | Status: new
Priority: Medium | Milestone: Tor: unspecified
Component: Core Tor/Tor | Version: Tor: 0.3.2.10
Severity: Normal | Resolution:
Keywords: tor-compression, tor-dir | Actual Points:
Parent ID: | Points: 0.5
Reviewer: | Sponsor:
--------------------------------------+----------------------------------
Old description:
> {{{
> $ 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
> basename $doc
> consensus: zlib compressed data
> }}}
>
> But when the client asks for gzip-encoded descriptors, the server sends
> gzip:
> {{{
> Accept-Encoding: gzip
> Requested: server/authority
> basename $doc
> 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.
New description:
{{{
$ 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.
--
Comment (by teor):
Edit description: remove extra output lines
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/25676#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list