summaryrefslogtreecommitdiff
path: root/src/or/circuituse.c
AgeCommit message (Collapse)Author
2008-12-22Fix all of the doxygen warnings not pertaining to missing documentation.Nick Mathewson
svn:r17727
2008-12-18Downlgrade tweak, and answer lots of XXX021s. No actual code fixes in this ↵Nick Mathewson
patch. svn:r17686
2008-12-18Remove fixed xxx020s; downgrade unfixed ones.Nick Mathewson
(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
2008-12-17Move edge-only flags from connection_t to edge_connection_t.Nick Mathewson
svn:r17643
2008-12-17Rename or_is_obsolete and move it to or_connection_t where it belongs.Nick Mathewson
svn:r17642
2008-11-07fix wide linesNick Mathewson
svn:r17198
2008-11-05(a - b) / 2 != a - (b / 2); this is the reason why tunneled directory ↵Karsten Loesing
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
2008-11-01Fix an assertion failure on double-marked circuits, and a double-mark.Nick Mathewson
svn:r17179
2008-10-21Fix another case of refusing to use a chosen exit node because we think it ↵Nick Mathewson
will reject _mostly_ everything. Based on patch from rovv. See bug 752. svn:r17139
2008-10-15add patch2 from proposal 155:Roger Dingledine
Launch a second client-side introduction circuit in parallel after a delay of 15 seconds (based on work by Christian Wilms). svn:r17108
2008-10-15put in karsten's patch #1 for proposal 155, modifiedRoger Dingledine
svn:r17106
2008-09-29Nobody calls circuit_launch_by_nickname; remove it.Nick Mathewson
svn:r17006
2008-09-29Patch from mwenge: update TrackHostExits mapping expiry times when the ↵Nick Mathewson
mappings are used, so that they expire a while after their last use, not a while after their creation. svn:r17004
2008-09-29Fix a bug where an unreachable relay would establish enoughRoger Dingledine
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
2008-09-24Add patch 4 from Karsten for proposal 121, slightly modified. Karsten ↵Nick Mathewson
should definitely re-review the bits I changed. svn:r16955
2008-09-15Add a circuit_conforms_to_options() function for use in debugging paths [and ↵Nick Mathewson
inother stuff too]. Untested, and so far unused. svn:r16914
2008-09-09karsten's patch for bug 767.Roger Dingledine
svn:r16808
2008-09-09Catch and report a few more bootstrapping failure cases when TorRoger Dingledine
fails to establish a TCP connection. Cleanup on 0.2.1.x. svn:r16803
2008-08-05 r17641@31-33-44: nickm | 2008-08-05 16:07:53 -0400Nick Mathewson
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
2008-08-03note a feature (bugfix) we should do one dayRoger Dingledine
svn:r16368
2008-07-30 r17436@tombo: nickm | 2008-07-30 09:03:19 -0400Nick Mathewson
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
2008-06-30forward-port r15576Roger Dingledine
svn:r15577
2008-06-20If we close our OR connection because there's been a circuitRoger Dingledine
pending on it for too long, we were telling our bootstrap status events "REASON=NONE". Now tell them "REASON=TIMEOUT". svn:r15369
2008-06-20Big bridge bugfixes. Backport candidates.Roger Dingledine
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
2008-06-13note a bug that karsten foundRoger Dingledine
svn:r15236
2008-04-22 r15283@tombo: nickm | 2008-04-22 13:43:45 -0400Nick Mathewson
Correctly notify one-hop connections when a circuit build has failed. possible fix for bug 669. found by lodger. svn:r14415
2008-04-16minor fixes that have been accumulatingRoger Dingledine
svn:r14378
2008-03-24fix r14162 so it was what i meant. sometimes precedence is surprising!Roger Dingledine
svn:r14164
2008-03-24when our onehop circuits were failing, nobody was telling theRoger Dingledine
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
2008-03-24If our create-fast cell is mysteriously never answered for a begindirRoger Dingledine
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
2008-03-17 r18862@catbus: nickm | 2008-03-16 23:33:11 -0400Nick Mathewson
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
2008-02-22 r14388@tombo: nickm | 2008-02-21 22:44:28 -0500Nick Mathewson
More 64-to-32 fixes. svn:r13672
2008-02-21 r18345@catbus: nickm | 2008-02-21 13:45:04 -0500Nick Mathewson
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
2008-02-21Even though the man page said that "TrackHostExits ." shouldRoger Dingledine
work, nobody had ever implemented it. Bugfix on 0.1.0.x. svn:r13647
2008-02-08 r17985@catbus: nickm | 2008-02-08 16:30:02 -0500Nick Mathewson
Bugfix from Karsten Loesing: Retry v2 rend descriptors on intro point failure. svn:r13431
2008-02-07Update some copyright notices: it is now 2008.Nick Mathewson
svn:r13412
2007-12-23 r15653@tombo: nickm | 2007-12-23 14:15:12 -0500Nick Mathewson
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
2007-12-12clean up copyrights, and assign 2007 copyrights to The Tor Project, IncRoger Dingledine
svn:r12786
2007-11-26minor cleanupsRoger Dingledine
svn:r12571
2007-10-28Separate "SOCKS_COMMAND_CONNECT_DIR" into two flags inRoger Dingledine
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
2007-10-11minor cleanupsRoger Dingledine
svn:r11890
2007-08-19backport candidate (revert part of r9350):Roger Dingledine
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
2007-08-19generalize circuit_find_to_cannibalize() so it knows whatRoger Dingledine
purpose circuit we're planning to become svn:r11184
2007-07-29make progress towards retrying our bridges when they're allRoger Dingledine
down and we get a new socks request svn:r10967
2007-06-15Refine r10571: more work on bridge stuff.Roger Dingledine
- 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
2007-06-12More work towards making bridge users able to connect via bridges:Roger Dingledine
- 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
2007-05-31trivial changes from my sandboxRoger Dingledine
svn:r10429
2007-05-29 r13070@catbus: nickm | 2007-05-29 15:53:21 -0400Nick Mathewson
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
2007-05-13polish r9726-r9903Roger Dingledine
svn:r10182
2007-05-02New config option V2AuthoritativeDirectory that all directoryRoger Dingledine
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