aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
Commit message (Expand)AuthorAge
* Change end-of-file NLNL convention. It turns out arma I and I agree.•••svn:r4382 Nick Mathewson2005-06-09
* New whitespace normalization rule: no blank line at EOF.•••svn:r4378 Nick Mathewson2005-06-09
* allow the middle hop of the testing circuit to be running•••any version, now that most of them have the bugfix to let them connect to unknown servers. svn:r4263 Roger Dingledine2005-05-17
* clean up some log entries•••svn:r4228 Roger Dingledine2005-05-15
* Make Tor compile with no warnings with gcc4.0 on OSX•••svn:r4184 Nick Mathewson2005-05-07
* first iteration of scrubbing sensitive strings from logs.•••also generally clean up log messages. svn:r4174 Roger Dingledine2005-05-03
* Actually, dont send CREATE_FAST cells at all for now•••svn:r4163 Nick Mathewson2005-05-02
* New and frightening code to implement fast-path first-hop CREATE_FAST cells. ...•••svn:r4162 Nick Mathewson2005-05-02
* clean up this TOR_FRAGILE business•••svn:r4116 Roger Dingledine2005-04-26
* bugfix: stop trying to print a null pointer if an OR conn fails•••because we didn't like its cert. svn:r4111 Roger Dingledine2005-04-25
* Improve conn_*_to_string; add circuit_state_to_string; make skewed-descriptor...•••svn:r4047 Nick Mathewson2005-04-07
* Fix bug in last commit when no circid can be found•••svn:r4023 Nick Mathewson2005-04-06
* Hopefully, this will make ORs much faster, and not break them: keep a big spl...•••svn:r4020 Nick Mathewson2005-04-06
* Give better warnings if connection_close_unattached_ap gets called twice or c...•••svn:r3990 Nick Mathewson2005-04-02
* update copyright notices.•••svn:r3982 Nick Mathewson2005-04-01
* require exactly 0.0.9.7 for middle hops of testing circs, for now•••svn:r3967 Roger Dingledine2005-04-01
* when building testing circuits, always use middle hops•••running at least 0.0.9.7 svn:r3966 Roger Dingledine2005-04-01
* fix some log spacing problems•••svn:r3942 Roger Dingledine2005-04-01
* still publish your descriptor if orport is reachable but dirport isn't•••when building testing circs for orport testing, require high-bandwidth nodes, so fewer circs fail. complain about unreachable orport separately from unreachable dirport. svn:r3935 Roger Dingledine2005-03-31
* ...and use it to make sure we only conclude reachability if•••we didn't initiate the conn. svn:r3932 Roger Dingledine2005-03-31
* forward-port the fixing of the crash bug.•••svn:r3900 Roger Dingledine2005-03-27
* stop most cases of hanging up on a socks connection without sending•••the socks reject. audit for remaining ones. also make things more uniform so we always remember to hold-open-until-flushed, etc. svn:r3891 Roger Dingledine2005-03-27
* try harder to establish reachability, in the first 20 minutes•••of uptime. svn:r3884 Roger Dingledine2005-03-26
* make it clearer to the human that his server is testing•••its reachability. tell him when it succeeds, or when 20 minutes pass and it hasn't succeeded yet. svn:r3882 Roger Dingledine2005-03-26
* Add a magic value to cpath_layer_t to make sure that we can tell valid cpaths...•••svn:r3831 Nick Mathewson2005-03-23
* remove a duplicate circuit_mark_for_close() when picking•••a path for the circuit fails. svn:r3822 Roger Dingledine2005-03-22
* clean up and refactor some more•••svn:r3798 Roger Dingledine2005-03-22
* Implement controller's "extendcircuit" directive.•••Also refactor circuit building so we plan the whole path ahead of time. svn:r3797 Roger Dingledine2005-03-22
* if our clock jumps forward by 100 seconds or more, assume something•••has gone wrong with our network and abandon all not-yet-used circs. svn:r3792 Roger Dingledine2005-03-19
* stop logging at -l notice every single time a create cell successfully•••gets processed svn:r3791 Roger Dingledine2005-03-19
* Turn addr_policy_compare from a tristate to a quadstate; this should help add...•••svn:r3786 Nick Mathewson2005-03-19
* re-enable reachability testing stuff.•••also, consider your ORPort reachable after you've processed a create cell from any non-local address. svn:r3763 Roger Dingledine2005-03-15
* Renormalize whitespace•••svn:r3757 Nick Mathewson2005-03-14
* Checkpoint in-progress fixes:•••Add 'testing' circuit purpose, for reachability testing. Notice when our IP changes, and reset stats. Try to pull down a directory via Tor to see if our DirPort is working. Try to extend a circuit back to us to see if our ORPort is working. Only publish a descriptor if they're both reachable. These mostly work, and I'd better get them in before I cause conflicts. svn:r3703 Roger Dingledine2005-02-27
* Change from inet_ntoa to a threadproof tor_inet_ntoa.•••svn:r3656 Nick Mathewson2005-02-22
* remove unused code•••svn:r3629 Roger Dingledine2005-02-16
* define TOR_FRAGILE if you want tor to give you a core when•••something goes wrong. this should only be used by people actively tracking bugs. svn:r3487 Roger Dingledine2005-02-01
* fix another bug where general exit circs were looking at rendezvous•••streams. consolidate the looking into one function so it doesn't happen again. svn:r3372 Roger Dingledine2005-01-19
* remove some extra-verbose logs•••svn:r3361 Roger Dingledine2005-01-17
* Introduce a notion of 'internal' circs, which are chosen without regard•••to the exit policy of the last hop. Intro and rendezvous circs must be internal circs, to avoid leaking information. Resolve and connect streams can use internal circs if they want. New circuit pooling algorithm: make sure to have enough circs around to satisfy any predicted ports, and also make sure to have 2 internal circs around if we've required internal circs lately (with high uptime if we've seen that lately). Split NewCircuitPeriod config option into NewCircuitPeriod (30 secs), which describes how often we retry making new circuits if current ones are dirty, and MaxCircuitDirtiness (10 mins), which describes how long we're willing to make use of an already-dirty circuit. Once rendezvous circuits are established, keep using the same circuit as long as you attach a new stream to it at least every 10 minutes. (So web browsing doesn't require you to build new rend circs every 30 seconds.) Cannibalize GENERAL circs to be C_REND, C_INTRO, S_INTRO, and S_REND circ as necessary, if there are any completed ones lying around when we try to launch one. Re-instate the ifdef's to use version-0 style introduce cells, since there was yet another bug in handling version-1 style. We'll try switching over again after 0.0.9 is obsolete. Bugfix: when choosing an exit node for a new non-internal circ, don't take into account whether it'll be useful for any pending x.onion addresses -- it won't. Bugfix: we weren't actually publishing the hidden service descriptor when it became dirty. So we only published it every 20 minutes or so, which means when you first start your Tor, the hidden service will seem broken. svn:r3360 Roger Dingledine2005-01-17
* Annotate circuits w/ whether they aim to contain high uptime nodes and/or•••high capacity nodes. When building circuits, choose appropriate nodes. New config option LongLivedPorts to indicate application streams that will want high uptime circuits. When attaching a stream to a circuit, pay attention to its requirements. This means that every single node in an intro rend circuit, not just the last one, will have a minimum uptime. Boost the min uptime from an hour to 24 hours. svn:r3339 Roger Dingledine2005-01-12
* When listing circuits that are pending on an opening OR connection,•••if we're an OR we were listing circuits that *end* at us as being pending on every listener, dns/cpu worker, etc. Stop that. svn:r3171 Roger Dingledine2004-12-17
* clean up logging,•••make it clearer which warns are bugs, make the control log event match its specification, point out a bug in how we deal with failure when renewing the tls context. svn:r3138 Roger Dingledine2004-12-13
* I'm a bad person.•••Stop treating the uint16_t's as null-terminated strings, and stop looking at the byte after them to see if it's null, because sometimes you're not allowed to look there. svn:r3108 Roger Dingledine2004-12-07
* were we on crack??•••svn:r3107 Roger Dingledine2004-12-07
* and bust another memory leak•••svn:r3105 Roger Dingledine2004-12-07
* Fix some memory leaks and unlikely segfaults•••svn:r3103 Nick Mathewson2004-12-07
* fix a minor leak in my recent commit•••svn:r3081 Roger Dingledine2004-12-05
* New circuit building strategy: keep a list of ports that we've used in ...•••that will handle each such port. (We can extend this to include addresses if exit policies shift to require that.) Seed us with port 80 so web browsers won't complain that Tor is "slow to start up". This was necessary because our old circuit building strategy just involved counting circuits, and as time went by we would build up a big pile of circuits that had peculiar exit policies (e.g. only exit to 9001-9100) which would take up space in the circuit pile but never get used. Fix router_compare_addr_to_addr_policy: it was not treating a port of * as always matching, so we were picking reject *:* nodes as exit nodes too. If you haven't used a clean circuit in an hour, throw it away, just to be on the safe side. This means after 6 hours a totally unused Tor client will have no circuits open. svn:r3078 Roger Dingledine2004-12-05
* bugfix: When we were checking to see if an ap_conn should time out•••waiting for its connected cell, we were calculating time from when the ap_conn was created. So if it waited say 20 seconds before being attached, then we would immediately decide that the circuit had timed out. Also, make circuit_dump_by_conn() display actual circuit progress, including circuits that haven't been attached to the conn yet but hope to when it finishes connecting. svn:r3072 Roger Dingledine2004-12-04