aboutsummaryrefslogtreecommitdiff
path: root/src/or/hibernate.c
AgeCommit message (Collapse)Author
2006-12-10some more cleanups and a bugfix on r9052Roger Dingledine
svn:r9062
2006-12-09correction and cleanups on r9047Roger Dingledine
svn:r9060
2006-12-08 r11479@Kushana: nickm | 2006-12-07 23:38:54 -0500Nick Mathewson
Refactor GETINFO into a table-driven dispatch, as suggested by arma. My brain hurts. svn:r9052
2006-12-07 r11469@Kushana: nickm | 2006-12-07 15:11:04 -0500Nick Mathewson
Round stored/transmitted values for bandwidth usage. This might make some attacks work less well. This might well be voodoo, but it gives me a warm fuzzy feeling. svn:r9048
2006-12-07 r11468@Kushana: nickm | 2006-12-07 14:56:57 -0500Nick Mathewson
Revise logic used to flush state to disk. Now, we try to batch non-urgent changes so that we do not do too many writes, and we save very-non-urgent changes every once in a rare while, and we never save more than once per second. svn:r9047
2006-12-07 r11462@Kushana: nickm | 2006-12-07 13:42:21 -0500Nick Mathewson
Make bandwidth accounting information get stored to the state file as well as bw_accounting. Read from the state file if it is more recent than bw_accounting, or if bw_accounting is not there. svn:r9044
2006-11-14 r9308@totoro: nickm | 2006-11-13 18:41:23 -0500Nick Mathewson
Add support for (Free?)BSD's natd, which was an old way to let you have your firewall automatically redirect traffic. (Original patch from Zajcev Evgeny, updated for 0.1.2.x by tup.) svn:r8946
2006-10-19 r9274@Kushana: nickm | 2006-10-19 16:16:58 -0400Nick Mathewson
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
2006-09-29 r9025@Kushana: nickm | 2006-09-29 18:33:13 -0400Nick Mathewson
Differentiate more duplicated log entries svn:r8542
2006-08-10 r7299@Kushana: nickm | 2006-08-10 01:08:58 -0700Nick Mathewson
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
2006-07-26 r6908@Kushana: nickm | 2006-07-26 12:38:52 -0400Nick Mathewson
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
2006-07-18Oh. And apparently, msvc6 doesnt think very much of doing u64-and-double ↵Nick Mathewson
arithmetic either. svn:r6785
2006-07-17MSVC6 is apparently terrified of unnatural cross-breeding between uint64_t ↵Nick Mathewson
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
2006-06-24refuse to write an iso_time which we can't parse, when dumpingRoger Dingledine
bandwidth state. this fixes the particular incident in bug 308, but the general issue remains. svn:r6684
2006-04-23make more hibernate log messages use local time. we should auditRoger Dingledine
to see what other log messages keep switching back and forth between GMT and local. svn:r6411
2006-03-13Be a little more careful when our calculated bandwidth is so high that we ↵Nick Mathewson
could never ever exhaust our bandwidth limit. This should resolve bug 130. svn:r6146
2006-03-12Cleanup on time-relaqted constants. New conventions:Nick Mathewson
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
2006-02-13the things we do for our windows users.Roger Dingledine
i hope they appreciate it. svn:r6004
2006-02-09Happy new year!Roger Dingledine
svn:r5949
2005-12-14Bite the bullet and limit all our source lines to 80 characters, the way IBM ↵Nick Mathewson
intended. svn:r5582
2005-12-10when we changed from log_fn to debug/info/notice/warn/err,Roger Dingledine
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
2005-12-09In my private little universe, terminals are still 80 columns. Impose a ↵Nick Mathewson
160-character-per-line limit; this will creep down. svn:r5548
2005-11-14Fix number in error messageNick Mathewson
svn:r5369
2005-10-25Remove last vestiges of old logging interface.Nick Mathewson
svn:r5317
2005-10-25Switch remaining files to new log interface.Nick Mathewson
svn:r5315
2005-09-13a bit more code cleanupRoger Dingledine
svn:r5033
2005-08-08fix whitespace issuesNick Mathewson
svn:r4752
2005-07-28Possibly broken implementation of persistant state; handles helper nodes; ↵Nick Mathewson
does not handle accounting info yet. svn:r4680
2005-07-23Fix out-of-place declarationNick Mathewson
svn:r4640
2005-07-22Be consistent about preferring foo* to struct foo*Nick Mathewson
svn:r4637
2005-07-22Add getinfo logic for accounting; add options for helper nodesNick Mathewson
svn:r4632
2005-06-11Docment or add DOCDOC comments to undocumented functions in src/or. Make ↵Nick Mathewson
function definition format uniform. svn:r4411
2005-06-09Change end-of-file NLNL convention. It turns out arma I and I agree.Nick Mathewson
svn:r4382
2005-06-09New whitespace normalization rule: no blank line at EOF.Nick Mathewson
svn:r4378
2005-04-02Give better warnings if connection_close_unattached_ap gets called twice or ↵Nick Mathewson
called on a marked connection; rename it to connection_mark_unattached_ap. svn:r3990
2005-04-01update copyright notices.Nick Mathewson
svn:r3982
2005-03-27stop most cases of hanging up on a socks connection without sendingRoger Dingledine
the socks reject. audit for remaining ones. also make things more uniform so we always remember to hold-open-until-flushed, etc. svn:r3891
2005-03-12change SHUTDOWN_WAIT_LENGTH from a fixed 30 secs to a config optionRoger Dingledine
svn:r3752
2005-03-01Revise all calls to connection_edge_end to avoid sending MISC, and to take ↵Nick Mathewson
errno into account where possible. svn:r3720
2005-02-22Patch to localtime/gmtime handling: use the _r variants where available. ↵Nick Mathewson
Use mutexes to fake _r where necessary. Make mutexes no-ops where no threading is enabled. svn:r3653
2005-02-10if we're hibernating and we get a sigint, exit immediately.Roger Dingledine
closes bug 91. svn:r3611
2005-02-02note a bug that wmf just foundRoger Dingledine
svn:r3503
2005-02-01Go into soft hibernation after 95% of the bandwidth is used,Roger Dingledine
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
2005-01-14reset published uptime when you wake up from hibernation,Roger Dingledine
since if you hibernate daily a published uptime of >1day will be misleading. svn:r3356
2004-12-16Make split(..., NULL) split on horizontal space; fix bug with tabs in config ↵Nick Mathewson
file. svn:r3155
2004-12-13clean up logging,Roger Dingledine
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
2004-12-08make the 64 bit args print correctly on 64 bit archstor-0.0.9rc7Roger Dingledine
svn:r3123
2004-12-07Log contents of bw_accounting when we read it; fix memory leak.Nick Mathewson
svn:r3118
2004-12-05send an end to the streams we close when we hibernate, ratherRoger Dingledine
than just chopping them off svn:r3083
2004-12-05talk about quotas rather than bandwidths, in the logsRoger Dingledine
svn:r3080