aboutsummaryrefslogtreecommitdiff
path: root/src/core/mainloop/netstatus.h
AgeCommit message (Collapse)Author
2021-03-12Update copyrights to 2021, using "make update-copyright"Nick Mathewson
2020-01-08It's 2020. Update the copyright dates with "make update-copyright"Nick Mathewson
2019-11-07Move netstatus (mainloop) state fields into mainloop's state.Nick Mathewson
2019-10-26doxygen: add @file declarations for src/core/mainloopNick Mathewson
If a file doesn't use the file command (either \file or @file), Doxygen won't try to process it.
2019-06-05Run "make autostyle."Nick Mathewson
2019-01-16Bump copyright date to 2019Nick Mathewson
2018-12-13Change interaction between dormant mode and clock jumps.Nick Mathewson
When the clock jumps, and we have a record of last user activity, adjust that record. This way if I'm inactive for 10 minutes and then the laptop is sleeping for an hour, I'll still count as having been inactive for 10 minutes. Previously, we treat every jump as if it were activity, which is ridiculous, and would prevent a Tor instance with a jumpy clock from ever going dormant.
2018-12-04Remember in our state file how long we've spent since user activityNick Mathewson
Rather than initializing the "Dormant" status to "off" and the "last activity" count to "now", initialize them based on our state file: stay dormant if we were dormant, or remember the amount of time we've spent inactive.
2018-11-15Make the NET_PARTICIPANT role dependent on user activityNick Mathewson
This patch implements all of 28337, except for the part where we turn off the role if we've been idle for a long time.
2018-09-25Move the "is the network disabled?" functions out of router.cNick Mathewson
Since this is completely core functionality, I'm putting it in core/mainloop, even though it depends on feature/hibernate. We'll have to sort that out in the future.