aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuituse.c
Commit message (Collapse)AuthorAge
* Fix all of the doxygen warnings not pertaining to missing documentation.Nick Mathewson2008-12-22
| | | | svn:r17727
* Downlgrade tweak, and answer lots of XXX021s. No actual code fixes in this ↵Nick Mathewson2008-12-18
| | | | | | patch. svn:r17686
* Remove fixed xxx020s; downgrade unfixed ones.Nick Mathewson2008-12-18
| | | | | | (The unfixed ones are being downgraded to regular XXXs mainly on the rationale that they don't seem to be exploding Tor, and they were apparently not showstoppers for 0.2.0.x-final.) svn:r17682
* Move edge-only flags from connection_t to edge_connection_t.Nick Mathewson2008-12-17
| | | | svn:r17643
* Rename or_is_obsolete and move it to or_connection_t where it belongs.Nick Mathewson2008-12-17
| | | | svn:r17642
* fix wide linesNick Mathewson2008-11-07
| | | | svn:r17198
* (a - b) / 2 != a - (b / 2); this is the reason why tunneled directory ↵Karsten Loesing2008-11-05
| | | | | | requests and client-side introduction circuits don't time out after the intended 30 seconds (task #847). Bugfix on r17106. Found by miner. svn:r17189
* Fix an assertion failure on double-marked circuits, and a double-mark.Nick Mathewson2008-11-01
| | | | svn:r17179
* Fix another case of refusing to use a chosen exit node because we think it ↵Nick Mathewson2008-10-21
| | | | | | will reject _mostly_ everything. Based on patch from rovv. See bug 752. svn:r17139
* add patch2 from proposal 155:Roger Dingledine2008-10-15
| | | | | | | | Launch a second client-side introduction circuit in parallel after a delay of 15 seconds (based on work by Christian Wilms). svn:r17108
* put in karsten's patch #1 for proposal 155, modifiedRoger Dingledine2008-10-15
| | | | svn:r17106
* Nobody calls circuit_launch_by_nickname; remove it.Nick Mathewson2008-09-29
| | | | svn:r17006
* Patch from mwenge: update TrackHostExits mapping expiry times when the ↵Nick Mathewson2008-09-29
| | | | | | mappings are used, so that they expire a while after their last use, not a while after their creation. svn:r17004
* Fix a bug where an unreachable relay would establish enoughRoger Dingledine2008-09-29
| | | | | | | | | | | reachability testing circuits to do a bandwidth test -- if we already have a connection to the middle hop of the testing circuit, then it could establish the last hop by using the existing connection. Bugfix on 0.1.2.2-alpha, exposed when we made testing circuits no longer use entry guards in 0.2.1.3-alpha. svn:r16997
* Add patch 4 from Karsten for proposal 121, slightly modified. Karsten ↵Nick Mathewson2008-09-24
| | | | | | should definitely re-review the bits I changed. svn:r16955
* Add a circuit_conforms_to_options() function for use in debugging paths [and ↵Nick Mathewson2008-09-15
| | | | | | inother stuff too]. Untested, and so far unused. svn:r16914
* karsten's patch for bug 767.Roger Dingledine2008-09-09
| | | | svn:r16808
* Catch and report a few more bootstrapping failure cases when TorRoger Dingledine2008-09-09
| | | | | | | fails to establish a TCP connection. Cleanup on 0.2.1.x. svn:r16803
* r17641@31-33-44: nickm | 2008-08-05 16:07:53 -0400Nick Mathewson2008-08-05
| | | | | | | Initial conversion of uint32_t addr to tor_addr_t addr in connection_t and related types. Most of the Tor wire formats using these new types are in, but the code to generate and use it is not. This is a big patch. Let me know what it breaks for you. svn:r16435
* note a feature (bugfix) we should do one dayRoger Dingledine2008-08-03
| | | | svn:r16368
* r17436@tombo: nickm | 2008-07-30 09:03:19 -0400Nick Mathewson2008-07-30
| | | | | | | Move n_addr, n_port, and n_conn_id_digest fields of circuit_t into a separately allocated extend_info_t. Saves 22 bytes per connected circuit_t on 32-bit platforms, and makes me more comfortable with using tor_addr_t in place of uint32_t n_addr. svn:r16257
* forward-port r15576Roger Dingledine2008-06-30
| | | | svn:r15577
* If we close our OR connection because there's been a circuitRoger Dingledine2008-06-20
| | | | | | | | pending on it for too long, we were telling our bootstrap status events "REASON=NONE". Now tell them "REASON=TIMEOUT". svn:r15369
* Big bridge bugfixes. Backport candidates.Roger Dingledine2008-06-20
| | | | | | | | | | | | | | | If you have more than one bridge but don't know their keys, you would only learn a request for the descriptor of the first one on your list. (Tor considered launching requests for the others, but found that it already had a connection on the way for $0000...0000 so it didn't open another.) If you have more than one bridge but don't know their keys, and the connection to one of the bridges failed, you would cancel all pending bridge connections. (After all, they all have the same digest.) svn:r15366
* note a bug that karsten foundRoger Dingledine2008-06-13
| | | | svn:r15236
* r15283@tombo: nickm | 2008-04-22 13:43:45 -0400Nick Mathewson2008-04-22
| | | | | | | Correctly notify one-hop connections when a circuit build has failed. possible fix for bug 669. found by lodger. svn:r14415
* minor fixes that have been accumulatingRoger Dingledine2008-04-16
| | | | svn:r14378
* fix r14162 so it was what i meant. sometimes precedence is surprising!Roger Dingledine2008-03-24
| | | | svn:r14164
* when our onehop circuits were failing, nobody was telling theRoger Dingledine2008-03-24
| | | | | | | | | streams. so they waited 120 seconds before timing out. this was particularly bad during bootstrapping, if an authority is down or not answering right. svn:r14163
* If our create-fast cell is mysteriously never answered for a begindirRoger Dingledine2008-03-24
| | | | | | | | attempt, notice more quickly. Some of our bootstrapping attempts have a 60 second delay while we sit there wondering why we're getting no response. svn:r14162
* r18862@catbus: nickm | 2008-03-16 23:33:11 -0400Nick Mathewson2008-03-17
| | | | | | | Part of fix for bug 617: allow connection_ap_handshake_attach_circuit() to mark connections, to avoid double-mark warnings. Note that this is an incomplete refactoring. svn:r14066
* r14388@tombo: nickm | 2008-02-21 22:44:28 -0500Nick Mathewson2008-02-22
| | | | | | | More 64-to-32 fixes. svn:r13672
* r18345@catbus: nickm | 2008-02-21 13:45:04 -0500Nick Mathewson2008-02-21
| | | | | | | Do the last part of arma's fix for bug 437: Track the origin of every addrmap, and use this info so we can remove all the trackhostexits-originated mappings for a given exit. svn:r13660
* Even though the man page said that "TrackHostExits ." shouldRoger Dingledine2008-02-21
| | | | | | | work, nobody had ever implemented it. Bugfix on 0.1.0.x. svn:r13647
* r17985@catbus: nickm | 2008-02-08 16:30:02 -0500Nick Mathewson2008-02-08
| | | | | | | Bugfix from Karsten Loesing: Retry v2 rend descriptors on intro point failure. svn:r13431
* Update some copyright notices: it is now 2008.Nick Mathewson2008-02-07
| | | | svn:r13412
* r15653@tombo: nickm | 2007-12-23 14:15:12 -0500Nick Mathewson2007-12-23
| | | | | | | Refactor circuit_launch* functions to take a bitfield of flags rather than 4 separate nonconsecutive flags arguments. Also, note a possible but in circuit_find_to_cannibalize, which seems to be ignoring its purpose argument. svn:r12948
* clean up copyrights, and assign 2007 copyrights to The Tor Project, IncRoger Dingledine2007-12-12
| | | | svn:r12786
* minor cleanupsRoger Dingledine2007-11-26
| | | | svn:r12571
* Separate "SOCKS_COMMAND_CONNECT_DIR" into two flags inRoger Dingledine2007-10-28
| | | | | | | | | | | | edge_connection_t: want_onehop if it must attach to a circuit with only one hop (e.g. for the current tunnelled connections that use begin_dir), and use_begindir if we mean to use a BEGIN_DIR relay command to establish the stream rather than the normal BEGIN. Now we can make anonymized begin_dir connections for (e.g.) more secure hidden service posting and fetching. svn:r12244
* minor cleanupsRoger Dingledine2007-10-11
| | | | svn:r11890
* backport candidate (revert part of r9350):Roger Dingledine2007-08-19
| | | | | | | | | | Expire application streams in all cases if they've been around longer than SocksTimeout. Right now there are some cases where the stream will live forever, demanding a new circuit every 15 seconds. Bugfix on 0.1.2.7-alpha; fixes bug 454; reported by lodger. svn:r11186
* generalize circuit_find_to_cannibalize() so it knows whatRoger Dingledine2007-08-19
| | | | | | | purpose circuit we're planning to become svn:r11184
* make progress towards retrying our bridges when they're allRoger Dingledine2007-07-29
| | | | | | | down and we get a new socks request svn:r10967
* Refine r10571: more work on bridge stuff.Roger Dingledine2007-06-15
| | | | | | | | | | | | | - Only listen to responses for "authority" fetches if we're configured to use Bridges. Otherwise it's safe (and maybe smarter) to silently discard them like we used to. - React faster to download networkstatuses after the first bridge descriptor arrives. - Don't do dir fetches before we have any bridges, even when our dirport is open. svn:r10604
* More work towards making bridge users able to connect via bridges:Roger Dingledine2007-06-12
| | | | | | | | | | | | | | | | | | | | | - demand options->Bridges and options->TunnelDirConns if options->UseBridges is set. - after directory fetches, accept descriptors that aren't referenced by our networkstatuses, *if* they're for a configured bridge. - delay directory fetching until we have at least one bridge descriptor. - learn how to build a one-hop circuit when we have neither routerinfo nor routerstatus for our destination. - teach directory connections how to pick a bridge as the destination directory when doing non-anonymous fetches. - tolerate directory commands for which the dir_port is 0. - remember descriptors when the requested_resource was "authority", rather than just ignoring them. - put bridges on our entry_guards list once we have a descriptor for them. When UseBridges is set, only pick entry guards that are bridges. Else vice versa. svn:r10571
* trivial changes from my sandboxRoger Dingledine2007-05-31
| | | | svn:r10429
* r13070@catbus: nickm | 2007-05-29 15:53:21 -0400Nick Mathewson2007-05-29
| | | | | | | Fix handling of resolves with very long or otherwise malformed addresses, and comment dns_resolve better, and stop making what should be a BUG warning into an assert(0). This fixes bug 427, which was introduced around 9900/9931/9932. Not a backport candidate: 0.1.2.x never had this bug. svn:r10399
* polish r9726-r9903Roger Dingledine2007-05-13
| | | | svn:r10182
* New config option V2AuthoritativeDirectory that all directoryRoger Dingledine2007-05-02
| | | | | | | | | | | authorities should set. This will let future authorities choose not to serve V2 directory information. Also, go through and revamp all the authdir_mode stuff so it tries to do the right thing if you're an auth but not a V1 or V2 auth. svn:r10092