Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #14048
Closed
Open
Issue created 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 an admin enable hashed storage. More information
Assignee
Assign to
Time tracking