aboutsummaryrefslogtreecommitdiff
path: root/src/or/hibernate.c
Commit message (Collapse)AuthorAge
...
* r9274@Kushana: nickm | 2006-10-19 16:16:58 -0400Nick Mathewson2006-10-19
| | | | | | | Add unit tests for tor_mmap_file(); make tor_mmap_t.size always be the size of the file (not the size of the mapping); add an extra argument to read_file_to_str() so it can return the size of the result string. svn:r8762
* r9025@Kushana: nickm | 2006-09-29 18:33:13 -0400Nick Mathewson2006-09-29
| | | | | | | Differentiate more duplicated log entries svn:r8542
* r7299@Kushana: nickm | 2006-08-10 01:08:58 -0700Nick Mathewson2006-08-10
| | | | | | | Patch from Tup to add support for transparent AP connections: this basically bundles the functionality of trans-proxy-tor into the tor mainline. Now hosts with compliant pf/netfilter implementations can redirect TCP connections straight to Tor without diverting through SOCKS. svn:r7007
* r6908@Kushana: nickm | 2006-07-26 12:38:52 -0400Nick Mathewson2006-07-26
| | | | | | | Refactor connection_t into edge, or, dir, control, and base subtypes. This might save some RAM on busy exit servers, but really matters most in terms of correctness. svn:r6906
* Oh. And apparently, msvc6 doesnt think very much of doing u64-and-double ↵Nick Mathewson2006-07-18
| | | | | | arithmetic either. svn:r6785
* MSVC6 is apparently terrified of unnatural cross-breeding between uint64_t ↵Nick Mathewson2006-07-17
| | | | | | and double, and needs more persuasion than usual to cast one to the other. Issue identified by Frediano Ziglio; patch revised for minimal impact on non-MSVC6 compilers. svn:r6768
* refuse to write an iso_time which we can't parse, when dumpingRoger Dingledine2006-06-24
| | | | | | | | bandwidth state. this fixes the particular incident in bug 308, but the general issue remains. svn:r6684
* make more hibernate log messages use local time. we should auditRoger Dingledine2006-04-23
| | | | | | | | to see what other log messages keep switching back and forth between GMT and local. svn:r6411
* Be a little more careful when our calculated bandwidth is so high that we ↵Nick Mathewson2006-03-13
| | | | | | could never ever exhaust our bandwidth limit. This should resolve bug 130. svn:r6146
* Cleanup on time-relaqted constants. New conventions:Nick Mathewson2006-03-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) Surround all constants by (parens), whether we'll be using them in a denominator or not. 2) Express all time periods as products (24*60*60), not as multiplied-out constants (86400). 3) Comments like "(60*60) /* one hour */" are as pointless as comments like "c = a + b; /* set c to the sum of a and b */". Remove them. 4) All time periods should be #defined constants, not given inline. 5) All time periods should have doxygen comments. 6) All time periods, unless specified, are in seconds. It's not necessary to say so. To summarize, the old (lack of) style would allow: #define FOO_RETRY_INTERVAL 60*60 /* one hour (seconds) */ next_try = now + 3600; The new style is: /** How often do we reattempt foo? */ #define FOO_RETRY_INTERVAL (60*60) next_try = now + RETRY_INTERVAL; svn:r6142
* the things we do for our windows users.Roger Dingledine2006-02-13
| | | | | | | i hope they appreciate it. svn:r6004
* Happy new year!Roger Dingledine2006-02-09
| | | | svn:r5949
* Bite the bullet and limit all our source lines to 80 characters, the way IBM ↵Nick Mathewson2005-12-14
| | | | | | intended. svn:r5582
* when we changed from log_fn to debug/info/notice/warn/err,Roger Dingledine2005-12-10
| | | | | | | | | | | | we screwed up the formatting in wild and unpredictable ways. fix it before it becomes convention to format logs in wild and unpredictable ways. still need to do src/common/ someday. svn:r5551
* In my private little universe, terminals are still 80 columns. Impose a ↵Nick Mathewson2005-12-09
| | | | | | 160-character-per-line limit; this will creep down. svn:r5548
* Fix number in error messageNick Mathewson2005-11-14
| | | | svn:r5369
* Remove last vestiges of old logging interface.Nick Mathewson2005-10-25
| | | | svn:r5317
* Switch remaining files to new log interface.Nick Mathewson2005-10-25
| | | | svn:r5315
* a bit more code cleanupRoger Dingledine2005-09-13
| | | | svn:r5033
* fix whitespace issuesNick Mathewson2005-08-08
| | | | svn:r4752
* Possibly broken implementation of persistant state; handles helper nodes; ↵Nick Mathewson2005-07-28
| | | | | | does not handle accounting info yet. svn:r4680
* Fix out-of-place declarationNick Mathewson2005-07-23
| | | | svn:r4640
* Be consistent about preferring foo* to struct foo*Nick Mathewson2005-07-22
| | | | svn:r4637
* Add getinfo logic for accounting; add options for helper nodesNick Mathewson2005-07-22
| | | | svn:r4632
* Docment or add DOCDOC comments to undocumented functions in src/or. Make ↵Nick Mathewson2005-06-11
| | | | | | function definition format uniform. svn:r4411
* Change end-of-file NLNL convention. It turns out arma I and I agree.Nick Mathewson2005-06-09
| | | | svn:r4382
* New whitespace normalization rule: no blank line at EOF.Nick Mathewson2005-06-09
| | | | svn:r4378
* Give better warnings if connection_close_unattached_ap gets called twice or ↵Nick Mathewson2005-04-02
| | | | | | called on a marked connection; rename it to connection_mark_unattached_ap. svn:r3990
* update copyright notices.Nick Mathewson2005-04-01
| | | | svn:r3982
* stop most cases of hanging up on a socks connection without sendingRoger Dingledine2005-03-27
| | | | | | | | the socks reject. audit for remaining ones. also make things more uniform so we always remember to hold-open-until-flushed, etc. svn:r3891
* change SHUTDOWN_WAIT_LENGTH from a fixed 30 secs to a config optionRoger Dingledine2005-03-12
| | | | svn:r3752
* Revise all calls to connection_edge_end to avoid sending MISC, and to take ↵Nick Mathewson2005-03-01
| | | | | | errno into account where possible. svn:r3720
* Patch to localtime/gmtime handling: use the _r variants where available. ↵Nick Mathewson2005-02-22
| | | | | | Use mutexes to fake _r where necessary. Make mutexes no-ops where no threading is enabled. svn:r3653
* if we're hibernating and we get a sigint, exit immediately.Roger Dingledine2005-02-10
| | | | | | | closes bug 91. svn:r3611
* note a bug that wmf just foundRoger Dingledine2005-02-02
| | | | svn:r3503
* Go into soft hibernation after 95% of the bandwidth is used,Roger Dingledine2005-02-01
| | | | | | | | | not 99%. This is especially important for daily hibernators who have a small accounting max. Hopefully it will result in fewer cut connections when the hard hibernation starts. svn:r3488
* reset published uptime when you wake up from hibernation,Roger Dingledine2005-01-14
| | | | | | | | since if you hibernate daily a published uptime of >1day will be misleading. svn:r3356
* Make split(..., NULL) split on horizontal space; fix bug with tabs in config ↵Nick Mathewson2004-12-16
| | | | | | file. svn:r3155
* clean up logging,Roger Dingledine2004-12-13
| | | | | | | | | make it clearer which warns are bugs, make the control log event match its specification, point out a bug in how we deal with failure when renewing the tls context. svn:r3138
* make the 64 bit args print correctly on 64 bit archsRoger Dingledine2004-12-08
| | | | svn:r3123
* Log contents of bw_accounting when we read it; fix memory leak.Nick Mathewson2004-12-07
| | | | svn:r3118
* send an end to the streams we close when we hibernate, ratherRoger Dingledine2004-12-05
| | | | | | | than just chopping them off svn:r3083
* talk about quotas rather than bandwidths, in the logsRoger Dingledine2004-12-05
| | | | svn:r3080
* Spell-check strings and commentsNick Mathewson2004-12-01
| | | | svn:r3052
* Suggestion from weasel: Make tor --version --version dump the cvs Id of ↵Nick Mathewson2004-11-29
| | | | | | every file. svn:r3019
* Normalize space: add one between every control keyword and control clause.Nick Mathewson2004-11-28
| | | | svn:r3003
* Better notice for hibernate interval spans; when estimate is 0, start out awake.Nick Mathewson2004-11-23
| | | | svn:r2963
* another slightly less confusing messageRoger Dingledine2004-11-23
| | | | | | | | | nick: we need to figure out if we should say anything different here when the wake-up time and the expected back-to-sleep time have both passed. svn:r2956
* less confusing message upon hibernationRoger Dingledine2004-11-23
| | | | svn:r2955
* fix some typos; move to 0.0.9rc1Roger Dingledine2004-11-23
| | | | svn:r2951