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
  • #14048

Closed
Open
Opened Dec 30, 2014 by toralf@toralf

from stem.util.connection import get_connections (v1.3) sometimes throws an exception

eg for an exit relay of ~ 2000 inbound+outbound connections sometimes the following code snippet

...
   try:
      connections = get_connections(resolver, process_pid = pid, process_name = 'tor')
      print " connections: %4i" % len(connections)
...
    except Exception as exc:
      print exc

gives :

 platform supports connection resolution via: proc, netstat, lsof, ss (picked: proc)
 1 instance(s) of tor: 2223 (picked: 2223)
unable to determine file descriptor destination: /proc/2223/fd/985

IMO if the "proc" resolver fails due to some race conditions for a particular connection it should deliver data for all the other connections.

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#14048