aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuituse.c
Commit message (Expand)AuthorAge
* 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
* Renormalize whitespace•••svn:r3095 Nick Mathewson2004-12-07
* 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
* React to eof immediately on non-open edge connections.•••Stop keeping track of num_retries for apconns, since they expire after 60 seconds anyway. When warning about retrying or giving up, print the address, so the user knows which one it's talking about. svn:r3073 Roger Dingledine2004-12-04
* 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
* Spell-check strings and comments•••svn:r3052 Nick Mathewson2004-12-01
* Let resolve conns retry/expire also, rather than sticking around forever.•••Put the check-if-requested-exitrouter-will-reject-us code in the circuit_attach loop, so it gets checked periodically and not just once at the beginning. This is useful in case the routerlist changes, but also in case the address gets resolved into something that we learn we'll reject. svn:r3039 Roger Dingledine2004-11-30
* Enforce coding style.•••svn:r3025 Nick Mathewson2004-11-30
* Suggestion from weasel: Make tor --version --version dump the cvs Id of every...•••svn:r3019 Nick Mathewson2004-11-29
* put in initial support for ".nickname.exit" addresses, to let alice•••decide what exit node to use; based on a patch by geoff goodell. needs more work: e.g. it goes bananas building new circuits when the chosen exit node's exit policy rejects the connection. svn:r3015 Roger Dingledine2004-11-29
* wrong is ok, and right is fine, but in between is apparently•••totally unacceptable to me. svn:r3005 Roger Dingledine2004-11-28
* Normalize space: add one between every control keyword and control clause.•••svn:r3003 Nick Mathewson2004-11-28
* remove emacs droppings, since nick says he doesn't need them anymore•••svn:r2989 Roger Dingledine2004-11-26
* minor fixes•••svn:r2901 Roger Dingledine2004-11-16
* Resolve FIXME items: make the kill-unattached-AP timeout symbolic•••svn:r2793 Nick Mathewson2004-11-10
* Clean up copyrights.•••Break connection_consider_empty_buckets() out of connection_read_bucket_decrement(). svn:r2698 Roger Dingledine2004-11-07
* Make options no longer a global variable.•••Now we can try setting an option but back out if it fails to parse, or if it's disallowed (e.g. changing RunAsDaemon from 1 to 0). Use parse_line_from_str rather than parse_line_from_file. svn:r2692 Roger Dingledine2004-11-06
* - Implement all of control interface except authentication, setconfig,••• and actually making the sockets. - Make sure that identity-based nicknames start with $. - Use new string_join interface. svn:r2661 Nick Mathewson2004-11-03
* Use strlcpy, not strcpy.•••svn:r2610 Nick Mathewson2004-10-27
* start the process of making 0.0.7* obsolete•••svn:r2565 Roger Dingledine2004-10-17
* don't assert multiple things in the same tor_assert()•••svn:r2544 Roger Dingledine2004-10-16
* fix paul gardner's assert bug.•••sometimes circuit_get_open_circ_or_launch() can return 0 but not return a circuit, e.g. because too many circuits have failed recently so the new one didn't launch. we need to tolerate that. svn:r2438 Roger Dingledine2004-10-11
* fix the stale pointer assert bug reported by joe magic•••svn:r2436 Roger Dingledine2004-10-11
* use only 0.0.9pre1 and later servers for resolve cells•••svn:r2416 Roger Dingledine2004-10-03
* checking only 0.0.7 and 0.0.8 didn't work, because some dirservers•••files have really old descriptors for the authdirservers, so we're asking them in the new format because they're too old. now we actually compare the version to a cutoff version, and act appropriately. also take this chance to use only >=0.0.8 servers for dns resolves, because of the recent bugs. we'll bump to >=0.0.9pre1 once there are some servers running that. svn:r2380 Roger Dingledine2004-09-27
* cleanup: use strcmpstart() in more places•••svn:r2372 Roger Dingledine2004-09-23
* be more aggressive about building circuits when we have no•••open circuits svn:r2290 Roger Dingledine2004-08-18
* be more aggressive about trying to make circuits:•••try once a second for 30 seconds, and only when the entire previous period has failed do we pause after MAX_CIRCUIT_FAILURES failures. svn:r2281 Roger Dingledine2004-08-18
* only establish intro points after we've gotten a directory•••svn:r2276 Roger Dingledine2004-08-18
* we were counting incorrectly when trying to figure out whether•••a given AP stream was being handled or not. (how did this work?) svn:r2077 Roger Dingledine2004-07-21
* abstract ORPort/SocksPort checks into server_mode(), proxy_mode(), clique_mod...•••svn:r2054 Nick Mathewson2004-07-18
* refuse to build a circuit before the directory has arrived•••this will prevent a few of the 'couldn't decrypt onionskin' errors, maybe svn:r2036 Roger Dingledine2004-07-13
* More digest/nickname fixes•••svn:r2000 Nick Mathewson2004-07-02
* some of the infrastructure to let ORs connect on demand•••svn:r1998 Roger Dingledine2004-07-02
* Implement RESOLVE/RESOLVED cells and socks resolve code•••svn:r1978 Nick Mathewson2004-06-17
* bugfix: if a circuit if borderline too old, then count it as too old.•••bugfix: we were retrying the same circuit after getting a resolve failure. so of course the next two tries would fail too. now we try a new circuit each time (at most three times). svn:r1867 Roger Dingledine2004-05-15
* Break files apart into more modules••• * \file circuitbuild.c * \brief The actual details of building circuits. * \file circuitlist.c * \brief Manage the global circuit list. * \file circuituse.c * \brief Launch the right sort of circuits, attach streams to them. * \file connection_edge.c * \brief Handle edge streams. * \file onion.c * \brief Functions to queue create cells, and handle onionskin * parsing and creation. * \file relay.c * \brief Handle relay cell encryption/decryption, plus packaging and * receiving from circuits. svn:r1863 Roger Dingledine2004-05-13