aboutsummaryrefslogtreecommitdiff
path: root/src/or
AgeCommit message (Collapse)Author
2009-09-01Merge commit 'origin/maint-0.2.1'Nick Mathewson
2009-09-01Remove a debug printfSebastian Hahn
2009-09-01Fix compile warnings on Snow LeopardSebastian Hahn
Big thanks to nickm and arma for helping me with this!
2009-09-01Merge commit 'public/bug1076'Nick Mathewson
2009-08-31Add getinfo accepted-server-descriptor. Clean spec.Roger Dingledine
Add a "getinfo status/accepted-server-descriptor" controller command, which is the recommended way for controllers to learn whether our server descriptor has been successfully received by at least on directory authority. Un-recommend good-server-descriptor getinfo and status events until we have a better design for them.
2009-08-31Merge branch 'maint-0.2.1'Roger Dingledine
2009-08-31Only send reachability status events on overall success/failureRoger Dingledine
We were telling the controller about CHECKING_REACHABILITY and REACHABILITY_FAILED status events whenever we launch a testing circuit or notice that one has failed. Instead, only tell the controller when we want to inform the user of overall success or overall failure. Bugfix on 0.1.2.6-alpha. Fixes bug 1075. Reported by SwissTorExit.
2009-08-31Revise parsing of time and memory units to handle spaces.Nick Mathewson
When we added support for fractional units (like 1.5 MB) I broke support for giving units with no space (like 2MB). This patch should fix that. It also adds a propoer tor_parse_double(). Fix for bug 1076. Bugfix on 0.2.2.1-alpha.
2009-08-28Merge branch 'maint-0.2.1'Roger Dingledine
2009-08-28Only send netinfo clock_skew to controller if an authority told us soRoger Dingledine
We were triggering a CLOCK_SKEW controller status event whenever we connect via the v2 connection protocol to any relay that has a wrong clock. Instead, we should only inform the controller when it's a trusted authority that claims our clock is wrong. Bugfix on 0.2.0.20-rc; starts to fix bug 1074. Reported by SwissTorExit.
2009-08-26When Tor fails to parse a descriptor of any kind, dump it to disk.Karsten Loesing
2009-08-26Merge commit 'karsten/proposal-166-impl-master'Nick Mathewson
2009-08-26A changelog entry and a bit more documentation for socks-clientNick Mathewson
2009-08-26Merge commit 'public/socks-client'Nick Mathewson
Resolved conflict in: src/or/or.h
2009-08-25Clean up a couple of style issues in the socks-client branch.Nick Mathewson
2009-08-21Add some fixes after discussion with Nick.Karsten Loesing
- Refactor geoip.c by moving duplicate code into rotate_request_period(). - Don't leak memory when cleaning up cell queues. - Make sure that exit_(streams|bytes_(read|written)) are initialized in all places accessing these arrays. - Read only the last block from *stats files and ensure that its timestamp is not more than 25 hours in the past and not more than 1 hour in the future. - Stop truncating the last character when reading *stats files. The only thing that's left now is to avoid reading whole *stats files into memory.
2009-08-21Refactor geoip_get_dirreq_history() some more.Nick Mathewson
This patch avoids a bunch of allocations, and avoids using unallocated memory.
2009-08-21Fix a memory leak in summarizing directory request timing.Nick Mathewson
Spotted by Coverity Scan.
2009-08-21Add the first 8 bytes of the git commit digest to our versions.Nick Mathewson
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.
2009-08-20Survive unparseable cached cert fileRoger Dingledine
2009-08-20Notice v3 cert parsing failuresRoger Dingledine
If any the v3 certs we download are unparseable, we should actually notice the failure so we don't retry indefinitely. Bugfix on 0.2.0.x; reported by "rotator".
2009-08-20Make consensus_method_is_supported() be the canonical source for its info.Nick Mathewson
Add a new function to derive the declared method list from consensus_method_is_supported().
2009-08-19Add basic support for SHA256.Nick Mathewson
This adds an openssl 0.9.8 dependency. Let's see if anybody cares.
2009-08-19Some final (?) cleanups of proposal 166 implementation.Karsten Loesing
2009-08-19Fix a couple of bugs that showed up at runtime.Karsten Loesing
2009-08-19Don't write extra-info document to debug logs.Karsten Loesing
2009-08-19Move all *-stats file to subdirectory stats/.Karsten Loesing
2009-08-19Include only the last 24 hours of stats in extra-info documents.Karsten Loesing
2009-08-19Write all statistics to disk exactly every 24 hours.Karsten Loesing
2009-08-18Clean up proposal 166 and its implementation.Karsten Loesing
2009-08-17Use memory pool for insertion times.Karsten Loesing
2009-08-17Implement queue with O(1) operations, and correct some math.Karsten Loesing
2009-08-17Reduce cell statistics accuracy from 1 ms to 10 ms.Karsten Loesing
2009-08-17Fix trivial bug when uploading extra-info documents.Karsten Loesing
2009-08-17Include contents of *-stats files in descriptor.Karsten Loesing
2009-08-17Remove ./configure option for cell statistics.Karsten Loesing
2009-08-17Remove ./configure option for entry and dir request statistics.Karsten Loesing
2009-08-14Merge commit 'mikeperry/bandwidth-voting-final'Nick Mathewson
2009-08-14Remove ./configure option for exit port statistics.Karsten Loesing
2009-08-12Merge commit 'origin/maint-0.2.1'Nick Mathewson
2009-08-11Fix possible segmentation fault on directory authorities.Karsten Loesing
The more verbose logs that were added in ee58153 also include a string that might not have been initialized. This can lead to segfaults, e.g., when setting up private Tor networks. Initialize this string with NULL.
2009-08-10Merge branch 'maint-0.2.1'Roger Dingledine
2009-08-10Send sendmes when we're down 100 cells, not 101.Roger Dingledine
Send circuit or stream sendme cells when our window has decreased by 100 cells, not when it has decreased by 101 cells. Bug uncovered by Karsten when testing the "reduce circuit window" performance patch. Bugfix on the 54th commit on Tor -- from July 2002, before the release of Tor 0.0.0. This is the new winner of the oldest-bug prize.
2009-08-10Merge branch 'maint-0.2.1' into tmp_mergeRoger Dingledine
2009-08-10Set up urras as the seventh v3 directory authority.Roger Dingledine
2009-08-09Switch over to tor_strtok_r instead of strtok_r.Mike Perry
2009-08-09Merge commit 'nickm/strtok' into mp-voting-finalMike Perry
2009-08-09Fix issues found by Nick in code review.Mike Perry
2009-08-09Add a new tor_strtok_r for platforms that don't have one, plus tests.Nick Mathewson
I don't think we actually use (or plan to use) strtok_r in a reentrant way anywhere in our code, but would be nice not to have to think about whether we're doing it.
2009-08-08LetsKillNoConnect removes support for .noconnectJacob Appelbaum
This is a patch to remove support for .noconnect. We are removing .noconnect because of a talk at Defcon 17 by Gregory Fleischer.