aboutsummaryrefslogtreecommitdiff
path: root/src/or/rephist.h
Commit message (Expand)AuthorAge
* Update copyright dates to 2012; add a few missing copyright statementsNick Mathewson2012-06-04
* Merge remote-tracking branch 'public/bug3296'Nick Mathewson2012-05-16
|\
| * When no usable exit satisfies a predicted port, stop predicting it.•••Fix for bug 3296. Nick Mathewson2012-05-11
* | MSVC build issue: make 'const' in declaration match 'const' in definition•••MSVC warns if you declare a function as having a "int foo" argument and then implement it with a "const int foo" argument, even though the latter "const" is not a part of the function's interface. Nick Mathewson2012-05-14
|/
* Add new stats type: descriptor fetch stats•••This is used for the bridge authority currently, to get a better intuition on how many descriptors are actually fetched from it and how many fetches happen in total. Implements ticket 4200. Sebastian Hahn2011-10-21
* Add unit tests for buffer-stats.•••Now that formatting the buffer-stats string is separate from writing it to disk, we can also decouple the logic to extract stats from circuits and finally write some unit tests for the history code. Karsten Loesing2011-08-04
* Separate generation of a buffer-stats string from writing it to disk.•••The new rep_hist_format_buffer_stats() generates a buffer-stats string that rep_hist_buffer_stats_write() writes to disk. All the state changing (e.g., resetting the buffer-stats history and initializing the next measurement interval) takes place in rep_hist_buffer_stats_write(). That allows us to finally test the buffer-stats code better. Karsten Loesing2011-08-04
* Merge remote branch 'origin/maint-0.2.2'Nick Mathewson2011-03-11
|\
| * Use observed instead of declared uptime for HSDir•••It is important to verify the uptime claim of a relay instead of just trusting it, otherwise it becomes too easy to blackhole a specific hidden service. rephist already has data available that we can use here. Bugfix on 0.2.0.10-alpha. Sebastian Hahn2011-03-11
* | Merge remote branch 'origin/maint-0.2.2'•••Resolved trivial one-line conflicts. Conflicts: src/or/dirserv.c src/or/rephist.c Nick Mathewson2011-03-08
|\|
| * Merge remote branch 'sebastian/bug1035' into maint-0.2.2Nick Mathewson2011-03-08
| |\
| | * Routers count as down when they change ORPort, too•••rransom noticed that a change of ORPort is just as bad as a change of IP address from a client's perspective, because both mean that the relay is not available to them while the new information hasn't propagated. Change the bug1035 fix accordingly. Also make sure we don't log a bridge's IP address (which might happen when we are the bridge authority). Sebastian Hahn2011-02-08
| | * Treat routers whose IPs have changed as having been down for MTBF/routerinfo•••calculation purposes. Nick Mathewson2010-11-22
* | | Merge remote branch 'origin/maint-0.2.2'Nick Mathewson2011-01-03
|\| |
| * | Bump copyright statements to 2011 (0.2.2)Nick Mathewson2011-01-03
| |/
* | Refactor conn stats and add unit tests.Karsten Loesing2010-12-03
* | Add metric on uni/bidirectional connection usage.Karsten Loesing2010-12-03
|/
* Try harder not to exceed the 50 KB extra-info descriptor limit.•••Our checks that we don't exceed the 50 KB size limit of extra-info descriptors apparently failed. This patch fixes these checks and reserves another 250 bytes for appending the signature. Fixes bug 2183. Karsten Loesing2010-11-15
* Merge commit 'karsten/dirbytes2'•••Conflicts: src/or/rephist.h Nick Mathewson2010-08-18
|\
| * Count bytes we spend on answering directory requests.Karsten Loesing2010-08-18
* | Remove unused function declarations•••Also remove some #if 0'd code from the unit tests for buffers. The code was killed in e6794e58081af773073c266e23fe3ab2ebecdb7e (5 years ago), and is now broken anyways. Sebastian Hahn2010-08-17
* | Give rep_hist_exit_stats_history() a better name.Karsten Loesing2010-08-15
* | Refactor exit port statistics code and add unit tests.Karsten Loesing2010-08-11
|/
* Allow enabling or disabling *Statistics while Tor is running.•••With this patch we stop scheduling when we should write statistics using a single timestamp in run_scheduled_events(). Instead, we remember when a statistics interval starts separately for each statistic type in geoip.c and rephist.c. Every time run_scheduled_events() tries to write stats to disk, it learns when it should schedule the next such attempt. This patch also enables all statistics to be stopped and restarted at a later time. This patch comes with a few refactorings, some of which were not easily doable without the patch. Karsten Loesing2010-08-05
* Fix typos, make all \brief's conformant, end sentences with a period.Linus Nordberg2010-07-28
* Create rephist.hSebastian Hahn2010-07-27