aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuituse.c
Commit message (Collapse)AuthorAge
* 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
* identify the exit node correctly when we timeout and detachRoger Dingledine2007-04-30
| | | | | | | | | from a circuit, even if the exit node is in the middle. there are probably a few more places that need this fix too. svn:r10076
* r12565@catbus: nickm | 2007-04-30 10:09:07 -0400Nick Mathewson2007-04-30
| | | | | | | Misc cleanup and bulletproofing on r10056. svn:r10058
* Let the controller specify HOP=%d as an argument to ATTACHSTREAM,Roger Dingledine2007-04-30
| | | | | | | so we can exit from the middle of the circuit. svn:r10056
* Add a new config option __DisablePredictedCircuits designed forRoger Dingledine2007-04-30
| | | | | | | | use by the controller, when we don't want Tor to build any circuits preemptively. svn:r10054
* Make PreferTunneledDirConns and TunnelDirConns work even whenRoger Dingledine2007-04-27
| | | | | | | | we have no cached directory info. This means Tor clients can now do all of their connections protected by TLS. svn:r10035
* r12644@0-41-wifi: nickm | 2007-03-23 16:02:23 -0400Nick Mathewson2007-03-24
| | | | | | | Eliminate more redundant circuit_t arguments when edge_connection_t is already supplied and the circuit is already attached. svn:r9900
* r12074@catbus: nickm | 2007-03-04 15:11:43 -0500Nick Mathewson2007-03-04
| | | | | | | Make all LD_BUG log messsages get prefixed with "Bug: ". Remove manually-generated "Bug: "s from log-messages. (Apparently, we remembered to add them about 40% of the time.) svn:r9733
* bonus points if it builds on 64 bitRoger Dingledine2007-03-01
| | | | svn:r9698
* make the prefertunnel stuff less obviously brokenRoger Dingledine2007-03-01
| | | | svn:r9697
* doc pedantRoger Dingledine2007-02-24
| | | | svn:r9634
* r11877@catbus: nickm | 2007-02-22 02:24:50 -0500Nick Mathewson2007-02-22
| | | | | | | Fix doc about when circuit_build_needed_circs() is called. Resolves another xxxx012. svn:r9617
* r11858@catbus: nickm | 2007-02-21 00:27:44 -0500Nick Mathewson2007-02-21
| | | | | | | As a trivial optimization, remove a redundant call to router_have_minimum_dir_info. This might shave 2% on some systems by according to some profilers. svn:r9610
* r11832@catbus: nickm | 2007-02-16 15:31:59 -0500Nick Mathewson2007-02-16
| | | | | | | Fix 35 remaining DOCDOC comments. Yowza. svn:r9596
* r11775@catbus: nickm | 2007-02-12 16:39:09 -0500Nick Mathewson2007-02-12
| | | | | | | Update copyright dates. svn:r9570
* r11629@catbus: nickm | 2007-02-02 15:06:17 -0500Nick Mathewson2007-02-02
| | | | | | | Removing the last DOCDOC comment hurt so much that I had to use Doxygen to identify undocumented macros and comments, and add 150 more DOCDOCs to point out where they were. Oops. Hey, kids! Fixing some of these could be your first Tor patch! svn:r9477
* Bring us one step closer to being able to establish an encryptedRoger Dingledine2007-01-27
| | | | | | | | | directory tunnel without knowing a descriptor first. Still not ready yet. As part of the change, now assume we can use a create_fast cell if we don't know anything about a router. svn:r9440