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

Closed
Open
Opened Dec 08, 2012 by Trac@tracbot

add version requirements to Event classes

This first submission is a Request For Comments, I still need to write tests before I ask to add this branch.

While reviewing SignalEvent, I realized it would not work for the tor version I am running.

ProtocolError: SETEVENTS received unexpected response
Unrecognized event "SIGNAL"

I thought the error message could be more meaningful (e.g.

ProtocolError: SETEVENTS received unexpected response
SIGNAL event requires Tor version 0.2.3.1-alpha or later

So, this patch series adds a version check to Controller.add_event_listener() and provides versions to Event classes (with a default version in Event itself).

Is this something we should add to Stem? Is this the format to use? I'd appreciate any feedback.

Pull the exp-event-versions-v1 branch from git://gitorious.org/stem-robinson/stem-robinson.git or view commit logs @ https://gitorious.org/stem-robinson/stem-robinson/commits/exp-event-versions-v1

Trac:
Username: robinson

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