aboutsummaryrefslogtreecommitdiff
path: root/src/or/rephist.c
Commit message (Collapse)AuthorAge
* Switch a should-benee-dless check for an assert.Nick Mathewson2008-09-30
| | | | svn:r17018
* a few more tweaksRoger Dingledine2008-09-30
| | | | svn:r17010
* Tweak the dbg-stability.txt code to log everything else that influences ↵Nick Mathewson2008-09-29
| | | | | | router stability calculations. svn:r17003
* Fix 0/0 calculation in get_weighted_fractional_uptime().Nick Mathewson2008-09-28
| | | | svn:r16994
* Put the start-of-downtime value in the start-of-downtime buffer so that we ↵Nick Mathewson2008-09-26
| | | | | | do not put junk in the dbg-stability.txt file svn:r16982
* Code to serve a current stability calculations from /tor/dbg-stability.txt. ↵Nick Mathewson2008-09-26
| | | | | | Untested: somebody please run this on an authority and let me know if it is broken. svn:r16981
* Whitespace fixes.Nick Mathewson2008-09-25
| | | | svn:r16967
* More logging for mtbf/wfu calculations.Nick Mathewson2008-09-23
| | | | svn:r16941
* minor fixes that have been accumulatingRoger Dingledine2008-04-16
| | | | svn:r14378
* forward-port r14375 and try to make it less likely to happen againRoger Dingledine2008-04-16
| | | | svn:r14377
* r14371@tombo: nickm | 2008-02-21 16:13:18 -0500Nick Mathewson2008-02-21
| | | | | | | Fix all -Wshorten-64-to-32 warnings that appear on my macbook. svn:r13662
* r18288@catbus: nickm | 2008-02-20 21:18:38 -0500Nick Mathewson2008-02-21
| | | | | | | Recover from bad tracked-since value in mtbf history file. This may finally close bug 537. svn:r13636
* pass bucket sizes num_read and num_written around as size_tsRoger Dingledine2008-02-20
| | | | | | | rather than ints svn:r13610
* resolve another edge case in staying dormantRoger Dingledine2008-02-19
| | | | svn:r13586
* If we only ever used Tor for hidden service lookups or posts, weRoger Dingledine2008-02-19
| | | | | | | | | would stop building circuits and start refusing connections after 24 hours, since we false believed that Tor was dormant. Reported by nwf; bugfix on 0.1.2.x. svn:r13583
* r14181@tombo: nickm | 2008-02-15 16:48:17 -0500Nick Mathewson2008-02-15
| | | | | | | Fix all but 2 DOCDOC items; defer many XXX020s (particularly those where fixing them would fix no bugs at the risk of introducing some bugs). svn:r13529
* r14170@tombo: nickm | 2008-02-15 11:50:38 -0500Nick Mathewson2008-02-15
| | | | | | | Fix or downgrade a bunch of xxx020 items. svn:r13527
* r18051@catbus: nickm | 2008-02-12 15:20:43 -0500Nick Mathewson2008-02-12
| | | | | | | Re-tune mempool parametes based on testing on peacetime: use smaller chuncks, free them a little more aggressively, and try very hard to concentrate allocations on fuller chunks. Also, lots of new documentation. svn:r13484
* doxygen and other cleanupsRoger Dingledine2008-02-09
| | | | svn:r13440
* r14063@tombo: nickm | 2008-02-08 15:48:32 -0500Nick Mathewson2008-02-08
| | | | | | | Add a bunch more code documentation; change the interface of fetch_var_cell_from_buf() so it takes the current link protocol into account and can't get confused by weird command bytes on v1 connections. svn:r13430
* Update some copyright notices: it is now 2008.Nick Mathewson2008-02-07
| | | | svn:r13412
* r17951@catbus: nickm | 2008-02-06 14:34:13 -0500Nick Mathewson2008-02-06
| | | | | | | Add more documentation; change the behavior of read_to_buf_tls to be more consistent. Note a longstanding problem with current read/write interfaces. svn:r13407
* r17933@catbus: nickm | 2008-02-05 19:54:28 -0500Nick Mathewson2008-02-06
| | | | | | | Stamp out a bunch of atoi users; make more tor_parse_long() users check their outputs. svn:r13395
* Make getinfo ns/purpose/bridge actually workRoger Dingledine2007-12-19
| | | | | | | Also, dump our bridge router status entries to disk every 30 minutes. svn:r12871
* Make bridge authorities test reachability of bridges.Roger Dingledine2007-12-18
| | | | | | | Added two XXX020's that we need to think harder about. svn:r12859
* r15530@tombo: nickm | 2007-12-17 16:54:03 -0500Nick Mathewson2007-12-17
| | | | | | | First wodge of geoip code so bridges can figure out which countries are blocking them. svn:r12845
* clean up copyrights, and assign 2007 copyrights to The Tor Project, IncRoger Dingledine2007-12-12
| | | | svn:r12786
* karsten's second refactoring patchRoger Dingledine2007-11-29
| | | | svn:r12607
* bump to 0.2.0.10-alphaRoger Dingledine2007-11-10
| | | | svn:r12455
* r16582@catbus: nickm | 2007-11-08 13:14:16 -0500Nick Mathewson2007-11-08
| | | | | | | Try to bulletproof the parse logic for router-stability. svn:r12441
* r16573@catbus: nickm | 2007-11-08 11:57:16 -0500Nick Mathewson2007-11-08
| | | | | | | Mess with the formula for the Guard flag again. Now it requires that you be in the most familiar 7/8 of nodes, and have above median wfu for that 7/8th. See spec for details. Also, log thresholds better. svn:r12440
* r16248@catbus: nickm | 2007-10-28 19:42:14 -0400Nick Mathewson2007-10-28
| | | | | | | Do not count a server as having any WFU until we have known about it for 18 hours (weighted). svn:r12261
* r15877@catbus: nickm | 2007-10-17 12:54:56 -0400Nick Mathewson2007-10-17
| | | | | | | Make unverified-consensus get removed when it is accepted or rejected. Make a new get_datadir_fname*() set of functions to eliminate the common code of "get the options, get the datadir, append some stuff". svn:r12000
* r15630@catbus: nickm | 2007-10-10 13:39:44 -0400Nick Mathewson2007-10-10
| | | | | | | Save weighted-fractional-uptime to disk as well as MTBF. Bump the version on rouer-stability: downgrading to versions earlier than this one will lose your WFU data. svn:r11835
* r15626@catbus: nickm | 2007-10-10 11:02:32 -0400Nick Mathewson2007-10-10
| | | | | | | Resolve bug 516: Never report our bandwidth-history as over RelayBandwidthRate*NUM_SECS_BW_SUM_INTERVAL. svn:r11833
* r15530@catbus: nickm | 2007-10-04 12:16:27 -0400Nick Mathewson2007-10-04
| | | | | | | Add a bunch of function documentation; clean up a little code; fix some XXXXs; tag the nonsensical EXTRAINFO_PURPOSE_GENERAL as nonsesnse; note another bit of "do not cache special routers" code to nuke. svn:r11761
* r14447@Kushana: nickm | 2007-09-17 13:31:50 -0400Nick Mathewson2007-09-17
| | | | | | | Track weighted fractional uptime in addition to weighted mtbf: we want to use mtbf for stable, but fractional uptime for guard. svn:r11456
* r14859@catbus: nickm | 2007-08-30 17:10:15 -0400Nick Mathewson2007-08-30
| | | | | | | 0-pad minutes and seconds when displaying weighted mtbf in info logs. svn:r11324
* r14832@catbus: nickm | 2007-08-29 15:00:27 -0400Nick Mathewson2007-08-29
| | | | | | | Use (and debug) new file-writing functions in order to simplify code that formerly built big strings in RAM. svn:r11301
* patch from mike perry to a) stop overloading guards as much, andRoger Dingledine2007-08-24
| | | | | | | b) raise the max-believable-bandwidth to 10MB/s. svn:r11258
* r14758@catbus: nickm | 2007-08-21 01:36:03 -0400Nick Mathewson2007-08-21
| | | | | | | Finish implementing and documenting proposal 108: Authorities now use MTBF data to set their stability flags, once they have at least 4 days of data to use. svn:r11240
* r14733@catbus: nickm | 2007-08-20 12:32:44 -0400Nick Mathewson2007-08-20
| | | | | | | Clean up MTBF storage code. Do not count times that we have been down toward the current run. Handle backward timewarps correctly. Store MTBF data on exit in addition to periodically. svn:r11225
* r14729@catbus: nickm | 2007-08-20 11:58:02 -0400Nick Mathewson2007-08-20
| | | | | | | Trigger load and save of MTBF data. svn:r11219
* r14659@catbus: nickm | 2007-08-18 14:19:34 -0400Nick Mathewson2007-08-18
| | | | | | | When we are loading state info from disk, never believe any date in the future. Doing so can keep us from retrying guards, rotating onion keys, storing bandwidth info, etc. Fixes bug 434, and others. Backport candidate, once it has been tested. svn:r11166
* r14630@catbus: nickm | 2007-08-17 16:30:42 -0400Nick Mathewson2007-08-17
| | | | | | | Functions to save and load MTBF information. svn:r11153
* r14626@catbus: nickm | 2007-08-17 11:20:05 -0400Nick Mathewson2007-08-17
| | | | | | | Link note_router_reachable and note_router_unreachable to mtbf code. decouple mtbf from connect/disconnect. log it in USR1. do not blow it away on cleanup if we are an authority. svn:r11151
* help nick work on proposal 108Roger Dingledine2007-08-17
| | | | svn:r11148
* r14612@catbus: nickm | 2007-08-16 15:23:35 -0400Nick Mathewson2007-08-16
| | | | | | | Initial work on proposal 108: have rephist.c track the information we want to be tracking for OR stability. svn:r11147
* r13283@catbus: nickm | 2007-06-06 01:43:44 -0400Nick Mathewson2007-06-06
| | | | | | | Fix up a couple of loops flagged by -Wunsafe-loop-optimizations so that they are more readable (and more amenable to compilation) svn:r10513
* r12768@catbus: nickm | 2007-05-16 17:25:33 -0400Nick Mathewson2007-05-16
| | | | | | | Fix GCC warnings related to local parameters/variables getting shadowed. svn:r10198