[tor-bugs] #18798 [Metrics/CollecTor]: analysis of descriptor completeness
Tor Bug Tracker & Wiki
blackhole at torproject.org
Wed May 25 12:50:52 UTC 2016
#18798: analysis of descriptor completeness
-------------------------------+-----------------------------------
Reporter: iwakeh | Owner: iwakeh
Type: task | Status: needs_information
Priority: Medium | Milestone:
Component: Metrics/CollecTor | Version:
Severity: Normal | Resolution:
Keywords: ctip | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
-------------------------------+-----------------------------------
Comment (by iwakeh):
> {{{
> curl -v
http://154.35.32.5/tor/extra/d/352c235cd4134d0d8ff41c1f88c653a450bd4137 >
/dev/null # 200 OK
> curl -v
http://154.35.32.5/tor/extra/d/0000000000000000000000000000000000000000 >
/dev/null # 404 Not found
> curl -v
http://154.35.32.5/tor/extra/d/352c235cd4134d0d8ff41c1f88c653a450bd4137+0000000000000000000000000000000000000000
> /dev/null # 200 OK
> }}}
>
> So, looks like "404 Not found" means that none of the requested
descriptor was found. Maybe the spec agrees, I didn't look.
Your empirical result coincides with the
[https://gitweb.torproject.org/torspec.git/tree/dir-spec.txt#n3245 spec]:
{{{
6.2. HTTP status codes
Tor delivers the following status codes. Some were chosen without much
thought; other code SHOULD NOT rely on specific status codes yet.
200 -- the operation completed successfully
-- the user requested statuses or serverdescs, and none of the ones
we
requested were found (0.2.0.4-alpha and earlier).
304 -- the client specified an if-modified-since time, and none of the
requested resources have changed since that time.
400 -- the request is malformed, or
-- the URL is for a malformed variation of one of the URLs we
support,
or
-- the client tried to post to a non-authority, or
-- the authority rejected a malformed posted document, or
404 -- the requested document was not found.
-- the user requested statuses or serverdescs, and none of the ones
requested were found (0.2.0.5-alpha and later).
503 -- we are declining the request in order to save bandwidth
-- user requested some items that we ordinarily generate or store,
but we do not have any available.
}}}
Is the "none" in the 200 description a typo? Shouldn't it be "at least
one"? Or am I missing something obvious?
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/18798#comment:13>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list