aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
| * | | | | Handle null conn->requested_resource rather than assertRobert Hogan2010-09-12
| | | | | | | | | | | | | | | | | | | | | | | | Per arma's comments in bug1138
| * | | | | Nick points out:Robert Hogan2010-09-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tor_assert(!conn->_base.purpose == DIR_PURPOSE_FETCH_EXTRAINFO) != tor_assert(conn->_base.purpose != DIR_PURPOSE_FETCH_EXTRAINFO) !!
| * | | | | Amend per Sebastian's comments:Robert Hogan2010-09-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Move checks for extra_info to callers - Change argument name from failed to descs - Use strlen("fp/") instead of a magic number - I passed on the suggestion to rename functions from *_failed() to *_handle_failure(). There are a lot of these so for now just follow the house style.
| * | | | | Fall back to direct descriptor request to bridges whenRobert Hogan2010-08-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | requests to authorities fail due to a network error. Bug#1138 "When a Tor client starts up using a bridge, and UpdateBridgesFromAuthority is set, Tor will go to the authority first and look up the bridge by fingerprint. If the bridge authority is filtered, Tor will never notice that the bridge authority lookup failed. So it will never fall back." Add connection_dir_bridge_routerdesc_failed(), a function for unpacking the bridge information from a failed request, and ensure connection_dir_request_failed() calls it if the failed request was for a bridge descriptor. Test: 1. for ip in `grep -iR 'router ' cached-descriptors|cut -d ' ' -f 3`; do sudo iptables -A OUTPUT -p tcp -d $ip -j DROP; done 2. remove all files from user tor directory 3. Put the following in torrc: UseBridges 1 UpdateBridgesFromAuthority 1 Bridge 85.108.88.19:443 7E1B28DB47C175392A0E8E4A287C7CB8686575B7 4. Launch tor - it should fall back to downloading descriptors directly from the bridge. Initial patch reviewed and corrected by mingw-san.
* | | | | | Make authorities download consensuses if appropriateNick Mathewson2010-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An authority should never download a consensus if it has a live one, but when it doesn't, it should admit that it's not going to get one, and see if anybody else can give it one. Fixes 1300, fix on 0.2.0.9-alpha
* | | | | | Initial oprofile instructions based on original by weasel.Nick Mathewson2010-09-12
| | | | | |
* | | | | | fix regression introduced by 1a65bdd2Roger Dingledine2010-09-12
| | | | | | | | | | | | | | | | | | | | | | | | noticed while reviewing hoganrobert/bug1138
* | | | | | Update to the latest tinytest versionNick Mathewson2010-09-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This cleans up some whitespace consistency issues and, more importantly, gives you the ability to skip tests from the command line.
* | | | | | Merge remote branch 'origin/maint-0.2.1'Nick Mathewson2010-09-08
|\ \ \ \ \ \
| * \ \ \ \ \ Merge remote branch 'karsten/geoip-sep2010' into maint-0.2.1Nick Mathewson2010-09-08
| |\ \ \ \ \ \
| | * | | | | | Update to the September 1 2010 Maxmind GeoLite Country database.Karsten Loesing2010-09-08
| | | | | | | |
* | | | | | | | be more consistent in using streamid_tNick Mathewson2010-09-08
| | | | | | | |
* | | | | | | | Merge branch 'bug1653'Nick Mathewson2010-09-08
|\ \ \ \ \ \ \ \
| * | | | | | | | Fix a missing stream_id argument; found by "tracktor"Nick Mathewson2010-09-03
| | | | | | | | |
| * | | | | | | | Fix behavior of adding a cell to a blocked queue.Nick Mathewson2010-09-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We frequently add cells to stream-blocked queues for valid reasons that don't mean we need to block streams. The most obvious reason is if the cell arrives over a circuit rather than from an edge: we don't block circuits, no matter how full queues get. The next most obvious reason is that we allow CONNECTED cells from a newly created stream to get delivered just fine. This patch changes the behavior so that we only iterate over the streams on a circuit when the cell in question came from a stream, and we only block the stream that generated the cell, so that other streams can still get their CONNECTEDs in.
| * | | | | | | | Mashael has a last name. (Taken from Ian's cv page.)Nick Mathewson2010-08-18
| | | | | | | | |
| * | | | | | | | Detect if we try to put a cell onto a supposedly blocked cell queue.Nick Mathewson2010-08-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When this happens, run through the streams on the circuit and make sure they're all blocked. If some aren't, that's a bug: block them all and log it! If they all are, where did the cell come from? Log it! (I suspect that this actually happens pretty frequently, so I'm making these log messages appear at INFO.)
| * | | | | | | | Decide whether to ignore SENDMEs based on streams_blocked, not queue sizeNick Mathewson2010-08-18
| | | | | | | | |
| * | | | | | | | Avoid over-filling cell queues when we receive a SENDMEyetonetime2010-08-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not start reading on exit streams when we get a SENDME unless we have space in the appropriate circuit's cell queue. Draft fix for bug 1653. (commit message by nickm)
* | | | | | | | | Merge remote branch 'origin/maint-0.2.1'Nick Mathewson2010-09-08
|\ \ \ \ \ \ \ \ \ | | |/ / / / / / / | |/| | | | | | |
| * | | | | | | | Remove a needless keep_open_until_flushedNick Mathewson2010-09-08
| | | | | | | | |
| * | | | | | | | Close a non-open OR connection *only* after KeepalivePeriod.Nick Mathewson2010-09-03
| | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we introduced the code to close non-open OR connections after KeepalivePeriod had passed, we replaced some code that said if (!connection_is_open(conn)) { /* let it keep handshaking forever */ } else if (do other tests here) { ... with new code that said if (!connection_is_open(conn) && past_keepalive) { /* let it keep handshaking forever */ } else if (do other tests here) { ... This was a mistake, since it made all the other tests start applying to non-open connections, thus causing bug 1840, where non-open connections get closed way early. Fixes bug 1840. Bugfix on 0.2.1.26 (commit 67b38d50).
* | | | | | | | Merge remote branch 'public/win_unicode_fixes'Nick Mathewson2010-09-06
|\ \ \ \ \ \ \ \
| * | | | | | | | Make the windows build succeed with or without -DUNICODE enabled.Nick Mathewson2010-08-20
| | |_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should keep WinCE working (unicode always-on) and get Win98 working again (unicode never-on). There are two places where we explicitly use ASCII-only APIs, still: in ntmain.c and in the unit tests. This patch also fixes a bug in windoes tor_listdir that would cause the first file to be listed an arbitrary number of times that was also introduced with WinCE support. Should fix bug 1797.
* | | | | | | | Merge branch 'ratelim'Nick Mathewson2010-08-31
|\ \ \ \ \ \ \ \
| * | | | | | | | Fix some issues in rate-limiting noticed by SebastianNick Mathewson2010-08-31
| | | | | | | | |
| * | | | | | | | Add a generic rate-limited log mechanism, and use it in a few placesNick Mathewson2010-08-18
| | |_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | Incidentally fixes bug 1042.
* | | | | | | | Merge remote branch 'origin/maint-0.2.1'Nick Mathewson2010-08-26
|\ \ \ \ \ \ \ \ | | |_|/ / / / / | |/| | | | | |
| * | | | | | | Use -Wno-system-headers on openbsd to resolve 2nd case of bug1848Nick Mathewson2010-08-26
| | | | | | | |
* | | | | | | | Merge commit 'karsten/rendspec-koryk'Nick Mathewson2010-08-25
|\ \ \ \ \ \ \ \
| * | | | | | | | Add koryk's modifications to rend-spec.Karsten Loesing2010-08-17
| | | | | | | | |
* | | | | | | | | Fix a compile warning on OpenBSDSebastian Hahn2010-08-22
| |_|_|/ / / / / |/| | | | | | |
* | | | | | | | Add unit test for tor_listdir.Nick Mathewson2010-08-20
| | | | | | | |
* | | | | | | | Merge commit 'sebastian/bug1843'Nick Mathewson2010-08-20
|\ \ \ \ \ \ \ \
| * | | | | | | | Warn for bad combination of cookie optionsSebastian Hahn2010-08-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Setting CookieAuthFileGroupReadable but without setting CookieAuthFile makes no sense, because unix directory permissions for the data directory prevent the group from accessing the file anyways.
* | | | | | | | | Bump version to 0.2.2.15-alpha-devNick Mathewson2010-08-19
|/ / / / / / / /
* | | | | | | | fix up contrib/checkOptionDocs.pl to match current practice (asciidoc ↵Nick Mathewson2010-08-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | manpage, no "online docs").
* | | | | | | | Fix up compilation on windows.Nick Mathewson2010-08-19
| |_|_|_|_|/ / |/| | | | | |
* | | | | | | bump to 0.2.2.15-alphaRoger Dingledine2010-08-18
| | | | | | |
* | | | | | | fold in even more changelog entriesRoger Dingledine2010-08-18
| | | | | | |
* | | | | | | delay geoip stats even more for relays-turned-bridgesRoger Dingledine2010-08-18
| | | | | | |
* | | | | | | explain the non-fix for bug 1776Roger Dingledine2010-08-18
| | | | | | |
* | | | | | | bug 1776 isn't fixed. save its changelog entry for next time.Roger Dingledine2010-08-18
| |_|/ / / / |/| | | | |
* | | | | | Edit the changelog to reflect the fact that we are backing off on ending ↵Nick Mathewson2010-08-18
| | | | | | | | | | | | | | | | | | | | | | | | NOROUTE for now
* | | | | | Merge commit 'origin/maint-0.2.1'Nick Mathewson2010-08-18
|\ \ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | Conflicts: src/or/reasons.c
| * | | | | Backport END_STREAM_REASON_NOROUTE for client use.Sebastian Hahn2010-08-18
| | | | | | | | | | | | | | | | | | | | | | | | (Partial backport of 150ed553dfce9, 161b275028e90, and 4c948ffd6.)
* | | | | | Merge commit 'karsten/dirbytes2'Nick Mathewson2010-08-18
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/or/rephist.h
| * | | | | | Correctly report written bytes on linked connections.Karsten Loesing2010-08-18
| | | | | | |
| * | | | | | Count bytes we spend on answering directory requests.Karsten Loesing2010-08-18
| | |/ / / / | |/| | | |
* | | | | | Remove unused function declarationsSebastian Hahn2010-08-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.