aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
Commit message (Collapse)AuthorAge
* Tweak values for when to discard all of our history.Mike Perry2009-10-07
| | | | | | This seems to be happening to me a lot on a garbage DSL line. We may need to come up with 2 threshholds: a high short onehop count and a lower longer count.
* Fix a couple of smaller issues with gathering statistics.Karsten Loesing2009-09-24
| | | | | | | | | | | | | | | | | | | | - Avoid memmoving 0 bytes which might lead to compiler warnings. - Don't require relays to be entry node AND bridge at the same to time to record clients. - Fix a memory leak when writing dirreq-stats. - Don't say in the stats files that measurement intervals are twice as long as they really are. - Reduce minimum observation time for requests to 12 hours, or we might never record usage. - Clear exit stats correctly after writing them, or we accumulate old stats over time. - Reset interval start for buffer stats, too.
* Fix typos and comments, plus two bugsRoger Dingledine2009-09-20
| | | | | | | | A) We were considering a circuit had timed out in the special cases where we close rendezvous circuits because the final rendezvous circuit couldn't be built in time. B) We were looking at the wrong timestamp_created when considering a timeout.
* Implement and document new network liveness algorithm.Mike Perry2009-09-20
| | | | Based on irc discussion with arma.
* Fix some precision-related asserts in unit tests.Mike Perry2009-09-20
| | | | | Mostly by storing the timeout as milliseconds and not seconds internally.
* give proposal 151 a changelog and other touchupsRoger Dingledine2009-09-17
|
* Clarify use of magic number 0.98 with #define.Mike Perry2009-09-16
|
* Change liveness value to be a function of the timeout.Mike Perry2009-09-16
| | | | | And also the number of recent circuits used to decide when the network changes.
* Add log message so we have accurate build time values.Mike Perry2009-09-16
|
* Address nickm's issues from his review #1.Mike Perry2009-09-16
|
* Move circuitbuildtimeout config check.Mike Perry2009-09-16
| | | | | | | We want it to be under our control so it doesn't mess up initialization. This is likely the cause for the bug the previous assert-adding commit (09a75ad) was trying to address.
* Document functions and constants.Mike Perry2009-09-16
|
* space/indent cleanups, plus point out three bugsRoger Dingledine2009-09-16
|
* Use our variable directly for timeout.Mike Perry2009-09-16
| | | | | | | Using CircuitBuildTimeout is prone to issues with SIGHUP, etc. Also, shuffle the circuit build times array after loading it in so that newer measurements don't replace chunks of similarly timed measurements.
* Fix a couple of assert bugs.Mike Perry2009-09-16
|
* Fix timeout edge case when we get enough samples.Mike Perry2009-09-16
| | | | Also switch Xm calculation to mode, not min.
* Fix the math.h log() conflict.Mike Perry2009-09-16
| | | | | | | It was compiling, but causing segfaults. Also, adjust when the timer starts for new test circs and save state every 25 circuits.
* Recover from changing network connections.Mike Perry2009-09-16
| | | | | Also add code to keep creating circuits every minute until we hit our minimum threshhold.
* Write unit tests and fix issues they uncovered.Mike Perry2009-09-16
|
* Implement the pareto fitting and timeout calculating bits.Mike Perry2009-09-16
|
* Clean up Fallon's partially complete GSoC project.Mike Perry2009-09-16
| | | | | The code actually isn't that bad. It's a shame she didn't finish. Using it as the base for this feature.
* Read "circwindow=x" from the consensus and use itRoger Dingledine2009-09-15
| | | | | | Tor now reads the "circwindow" parameter out of the consensus, and uses that value for its circuit package window rather than the default of 1000 cells. Begins the implementation of proposal 168.
* ConsensusParams config option lists key=value paramsRoger Dingledine2009-09-15
| | | | finishes the authority-operator interface side of proposal 167.
* Parameter access function, with unit tests.Nick Mathewson2009-09-14
|
* Implement proposal 167: Authorities vote on network parameters.Nick Mathewson2009-09-14
| | | | | | | | This code adds a new field to vote on: "params". It consists of a list of sorted key=int pairs. The output is computed as the median of all the integers for any key on which anybody voted. Improved with input from Roger.
* Merge commit 'karsten/proposal-166-impl-master'Nick Mathewson2009-08-26
|\
| * Write all statistics to disk exactly every 24 hours.Karsten Loesing2009-08-19
| |
| * Clean up proposal 166 and its implementation.Karsten Loesing2009-08-18
| |
| * Implement queue with O(1) operations, and correct some math.Karsten Loesing2009-08-17
| |
| * Include contents of *-stats files in descriptor.Karsten Loesing2009-08-17
| |
| * Remove ./configure option for cell statistics.Karsten Loesing2009-08-17
| |
| * Remove ./configure option for entry and dir request statistics.Karsten Loesing2009-08-17
| |
| * Remove ./configure option for exit port statistics.Karsten Loesing2009-08-14
| |
* | A changelog entry and a bit more documentation for socks-clientNick Mathewson2009-08-26
| |
* | Merge commit 'public/socks-client'Nick Mathewson2009-08-26
|\ \ | | | | | | | | | | | | Resolved conflict in: src/or/or.h
| * | Change proxy-address type to tor_addr_t to allow ipv6 proxies.Nick Mathewson2009-06-19
| | |
| * | Move SOCKS reason-decoding switches into reasons.cNick Mathewson2009-06-19
| | |
| * | Enable Tor to connect through SOCKS 4/5 proxiesChristopher Davis2009-06-19
| | | | | | | | | | | | | | | | | | Added a sanity check in config.c and a check in directory.c directory_initiate_command_rend() to catch any direct connection attempts when a socks proxy is configured.
* | | Add the first 8 bytes of the git commit digest to our versions.Nick Mathewson2009-08-21
| | | | | | | | | | | | | | | | | | | | | Note that unlike subversion revision numbers, it isn't meaningful to compare these for anything but equality. We define a sort-order anyway, in case one of these accidentally slips into a recommended-versions list.
* | | Merge commit 'mikeperry/bandwidth-voting-final'Nick Mathewson2009-08-14
|\ \ \ | |_|/ |/| |
| * | Fix issues found by Nick in code review.Mike Perry2009-08-09
| | |
| * | Implement measured bw parsing + unit tests.Mike Perry2009-08-06
| | |
* | | Disable .exit notation unless AllowDotExit is 1.Roger Dingledine2009-08-07
|/ /
* | Merge commit 'origin/maint-0.2.1'Nick Mathewson2009-07-30
|\ \ | | | | | | | | | | | | | | | | | | Resolved onflicts in: ChangeLog src/or/config.c src/or/or.h
| * | Fix a signed/unsigned compile warning in 0.2.1.19Roger Dingledine2009-07-28
| | |
* | | Merge branch 'maint-0.2.1' into masterRoger Dingledine2009-07-28
|\| |
| * | Changing MaxAdvertisedBW may not need a republishSebastian Hahn2009-07-27
| | | | | | | | | | | | | | | | | | | | | Relays no longer publish a new server descriptor if they change their MaxAdvertisedBandwidth config option but it doesn't end up changing their advertised bandwidth numbers. Bugfix on 0.2.0.28-rc; fixes bug 1026. Patch from Sebastian.
| * | three hacks to workaround bug 1038Roger Dingledine2009-07-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem is that clients and hidden services are receiving relay_early cells, and they tear down the circuit. Hack #1 is for rendezvous points to rewrite relay_early cells to relay cells. That way there are never any incoming relay_early cells. Hack #2 is for clients and hidden services to never send a relay_early cell on an established rendezvous circuit. That works around rendezvous points that haven't upgraded yet. Hack #3 is for clients and hidden services to not tear down the circuit when they receive an inbound relay_early cell. We already refuse extend cells at clients.
* | | Merge commit 'ioerror/DirFetchInfoExtraEarly'Nick Mathewson2009-07-25
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: ChangeLog
| * | | Add support for a new option: FetchDirInfoExtraEarlyJacob Appelbaum2009-07-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This new option will allow clients to download the newest fresh consensus much sooner than they normally would do so, even if they previously set FetchDirInfoEarly. This includes a proper ChangeLog entry and an updated man page.