Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Trac
Trac
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Issue Boards

GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

  • Legacy
  • TracTrac
  • Issues
  • #16501

Closed
Open
Opened Jul 04, 2015 by cypherpunks@cypherpunks

7 hsdir calls

I have a small threaded program that connects to the tor socks port and issues a GET request on hidden services.

I noticed that if it makes 7 concurrent calls to one hidden service, then all of the requests will fail immediately.

If it makes 6 concurrent calls then it is successful, for anything more than 6, a pause or sleep between calls was needed.

I think it is calling all 6 hsdirs and not waiting for a reply from any of them, and with the 7th call it fails all 7 requests on the spot.

Relevant log lines:

X 7 times

[info] connection_ap_handshake_rewrite_and_attach(): Got a hidden service request for ID 'mmmmmmmmmmmmmmmm'
[info] connection_ap_handshake_rewrite_and_attach(): Unknown descriptor mmmmmmmmmmmmmmmm. Fetching.

X 3 times, each time to a different hsdir

[info] directory_get_from_hs_dir(): Sending fetch request for v2 descriptor for service 'mmmmmmmmmmmmmmmm' with descriptor ID 'iddddddddddddddddddd111111111111', auth type 0, and descriptor cookie '[none]' to hidden service directory $fffffffffffffffff11111111111111111111111~nickname at aaa.aaa.aaa.aaa

X 3 times, each time to a different hsdir

[info] directory_get_from_hs_dir(): Sending fetch request for v2 descriptor for service 'mmmmmmmmmmmmmmmm' with descriptor ID 'iddddddddddddddddddd222222222222', auth type 0, and descriptor cookie '[none]' to hidden service directory $xxxxxxxxxxxxxxxxx22222222222222222222222~nickname at bbb.bbb.bbb.bbb
[info] directory_get_from_hs_dir(): Could not pick one of the responsible hidden service directories, because we requested them all recently without success.
[info] rend_client_refetch_v2_renddesc(): Could not pick one of the responsible hidden service directories to fetch descriptors, because we already tried them all unsuccessfully.
[notice] Closing stream for 'mmmmmmmmmmmmmmmm.onion': hidden service is unavailable (try again later).
[info] rend_client_note_connection_attempt_ended(): Connection attempt for mmmmmmmmmmmmmmmm has ended; cleaning up temporary state.
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: legacy/trac#16501