Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • 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
  • #3012

Closed (moved)
(moved)
Open
Created Apr 27, 2011 by Roger Dingledine@arma

relays don't ever checkpoint their state file

The calls to or_state_mark_dirty() are:

  • When you change your onion key
  • Every n client circuits you build
  • When you write out bandwidth accounting info (which happens on hup and when you begin hibernation or go dormant)
  • When you're exiting
  • When you add/remove an entry guard or one of your entry guards changes state

There's no regular checkpoint though. Which means you could go many days without writing it, and for relays now that we've added #1863 (moved) we might want that.

One fix would be to change

  global_state->next_write = TIME_MAX;

in or_state_save() to pick something like a day rather than TIME_MAX.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking