aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
Commit message (Collapse)AuthorAge
* r12651@Kushana: nickm | 2007-03-24 18:26:42 -0400Nick Mathewson2007-03-26
| | | | | | | Initial version of circuit-based cell queues. Instead of hammering or_conns with piles of cells, queue cells on their corresponding circuits, and append them to the or_conn as needed. This seems to work so far, but needs a bit more work. This will break the memory-use-limitation patch for begin_dir conns: the solution will be a fun but fiddly. svn:r9904
* r12643@0-41-wifi: nickm | 2007-03-23 14:56:35 -0400Nick Mathewson2007-03-24
| | | | | | | Refactor a bunch of functions that take edge_connection_t not to also take a crypt_path_t; the cpath is implicit. svn:r9899
* put the stopgap on whether we've sent a create cell, notRoger Dingledine2007-03-20
| | | | | | | whether we've attached a stream. svn:r9883
* 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
* r11970@catbus: nickm | 2007-02-27 19:17:27 -0500Nick Mathewson2007-02-28
| | | | | | | Fix a bug found by Udo van den Heuvel: avoid an assertion failure when a controller sets and clears EntryNodes before the next call to choose_random_entry(). Also make a function static. svn:r9669
* doc pedantRoger Dingledine2007-02-24
| | | | svn:r9634
* r11909@catbus: nickm | 2007-02-24 02:37:40 -0500Nick Mathewson2007-02-24
| | | | | | | Move tricky "delete the member of the smartlist currently under iteration" logic into its own happyfun macro. svn:r9633
* fix crash introduced in r9622Roger Dingledine2007-02-24
| | | | svn:r9632
* make it stop crashing when i exercise the new entrynodes behavior inRoger Dingledine2007-02-24
| | | | | | | | r9574. this hack is getting pretty darn hackish; perhaps it's time to not use SMARTLIST_FOREACH in this situation. svn:r9629
* r11885@catbus: nickm | 2007-02-23 13:34:24 -0500Nick Mathewson2007-02-23
| | | | | | | Fix an XXXX012: make entry guards _really_ get retried when the network comes back online. svn:r9622
* r11832@catbus: nickm | 2007-02-16 15:31:59 -0500Nick Mathewson2007-02-16
| | | | | | | Fix 35 remaining DOCDOC comments. Yowza. svn:r9596
* r11785@catbus: nickm | 2007-02-12 20:27:48 -0500Nick Mathewson2007-02-13
| | | | | | | Node-picking fixes: Never warn when a down node is listed in a config option (bug 348); always warn when a node in a config option is unnamed. Also, when entrynodes is configured, then build the guard list as: (parts of EntryNodes that were guards before), (the rest of EntryNodes), (the rest of the old guards). This last point ensures that EntryNode users will get the EntryNodes they want with the minimum change to their guard list. svn:r9574
* r11775@catbus: nickm | 2007-02-12 16:39:09 -0500Nick Mathewson2007-02-12
| | | | | | | Update copyright dates. svn:r9570
* r11773@catbus: nickm | 2007-02-12 15:18:48 -0500Nick Mathewson2007-02-12
| | | | | | | Implement proposal 106: stop requiring clients to have certificates, and stop checking for nicknames in certificates. [See proposal 106 for rationale.] Also improve messages when checking TLS handshake, to re-resolve bug 382. svn:r9568
* r11726@catbus: nickm | 2007-02-08 16:04:53 -0500Nick Mathewson2007-02-08
| | | | | | | | | | | | | | | | Resolve some XXXX012 items: - Remove PathlenCoinWeight: if we want it again, we can add it back in. - Ditto with RelayBandwidth*. - Decide to leave in the "hey, you didn't set end_reason!" BUG log message, but stop telling people to bug me personally. - Postpone strengthening assert_connection_ok(): it's important, but it's also a good way to introduce weird bugs. - Move some expensive consistency checking from dns_free_all() into assert_cache_ok(). svn:r9533
* r11702@catbus: nickm | 2007-02-08 02:10:19 -0500Nick Mathewson2007-02-08
| | | | | | | Wow. Remember when I wrote that script to tell me about macros that were never used? Good times. svn:r9525
* cleanups based on looking through svn commitsRoger Dingledine2007-02-06
| | | | svn:r9491
* r11637@catbus: nickm | 2007-02-05 12:41:51 -0500Nick Mathewson2007-02-05
| | | | | | | Fix an XXXX012, and make circuits_pending_or_conns a static variable. In addition to cleaning up the code, this may also resolve Bug 386 if Roger has the right intuition there. svn:r9482
* 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
* r11607@catbus: nickm | 2007-01-30 17:19:27 -0500Nick Mathewson2007-01-30
| | | | | | | Audit non-const char arguments; make a lot more of them const. svn:r9466
* r11606@catbus: nickm | 2007-01-30 16:52:23 -0500Nick Mathewson2007-01-30
| | | | | | | Write the entry guards section of path-spec; note a possible bug in cirbuitbuild.c; add a const; defer work on torrc.complete to be part of a bigger config documentation reorg. svn:r9465
* If the user asks to use invalid exit nodes, be willing to use theRoger Dingledine2007-01-27
| | | | | | | unstable ones. svn:r9441
* 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
* r11493@catbus: nickm | 2007-01-24 18:41:52 -0500Nick Mathewson2007-01-24
| | | | | | | Use set_uint16/32 instead of raw assignments in order to make gcc happier. svn:r9399
* r11285@catbus: nickm | 2007-01-23 19:43:50 -0500Nick Mathewson2007-01-24
| | | | | | | More documentation. (Again, trying to see whether I have buildbot working). svn:r9394
* minor cleanupsRoger Dingledine2007-01-22
| | | | svn:r9387
* r11966@Kushana: nickm | 2007-01-15 16:12:17 -0500Nick Mathewson2007-01-15
| | | | | | | Tidy up ORCONN reason patch from Mike Perry. Changes: make some of the handling of TLS error codes less error prone. Enforce house style wrt spaces. Make it compile with --enable-gcc-warnings. Only set or_conn->tls_error in the case of an actual error. Add a changelog entry. svn:r9355
* r11957@Kushana: nickm | 2007-01-15 15:25:57 -0500Nick Mathewson2007-01-15
| | | | | | | Patch from Mike Perry: Track reasons for OR connection failure; display them in control events. Needs review and revision. svn:r9354
* r11679@Kushana: nickm | 2006-12-23 21:38:41 -0500Nick Mathewson2006-12-24
| | | | | | | Update the state file less often when AvoidDiskWrites is set. svn:r9174
* r11614@Kushana: nickm | 2006-12-15 17:39:42 -0500Nick Mathewson2006-12-15
| | | | | | | Implement SETEVENTS GUARD. Needs review and testing. svn:r9137
* clarify our use of local time vs GMTRoger Dingledine2006-12-14
| | | | svn:r9109
* finish enabling begin-dir cells. require one-hop circs forRoger Dingledine2006-12-13
| | | | | | | | socks-command-connect-dir streams, so we don't open new anonymity questions. svn:r9099
* some more cleanups and a bugfix on r9052Roger Dingledine2006-12-10
| | | | svn:r9062
* correction and cleanups on r9047Roger Dingledine2006-12-09
| | | | svn:r9060
* r11479@Kushana: nickm | 2006-12-07 23:38:54 -0500Nick Mathewson2006-12-08
| | | | | | | Refactor GETINFO into a table-driven dispatch, as suggested by arma. My brain hurts. svn:r9052
* r11468@Kushana: nickm | 2006-12-07 14:56:57 -0500Nick Mathewson2006-12-07
| | | | | | | Revise logic used to flush state to disk. Now, we try to batch non-urgent changes so that we do not do too many writes, and we save very-non-urgent changes every once in a rare while, and we never save more than once per second. svn:r9047
* r9577@Kushana: nickm | 2006-11-20 11:07:28 -0500Nick Mathewson2006-11-20
| | | | | | | Oops; fix bug in last fix. Time to get some coffee. svn:r8970
* r9567@Kushana: nickm | 2006-11-20 11:05:59 -0500Nick Mathewson2006-11-20
| | | | | | | Fix leak in choose_good_exit_server_general() svn:r8969
* spec and implement some more status events. start to buildRoger Dingledine2006-10-23
| | | | | | | some conventions. svn:r8805
* implement a few status events, so we can make sure they work,Roger Dingledine2006-10-23
| | | | | | | and so vidalia can start handling them if it wants. svn:r8802
* r9060@totoro: nickm | 2006-10-17 11:12:48 -0400Nick Mathewson2006-10-17
| | | | | | | Apply patch from Mike Perry: add more reasons for circuit destroys. (Slightly tweaked to avoid allocating a number for an "internal" reason.) svn:r8739
* r9004@totoro: nickm | 2006-10-11 18:05:24 -0400Nick Mathewson2006-10-11
| | | | | | | | Add client support for a 'BadExit' flag, so authorities can say "Server X is a poor choise for your nytimes.com connections, as it seems to direct them to HoorayForMao.com or (more likely) WouldYouLikeToBuyTheseFineEncyclopedias.com" svn:r8690
* When reporting verbose nicknames in entry_guards_getinfo(), avoidRoger Dingledine2006-10-09
| | | | | | | printing a duplicate "$" in the keys we send. (Reported by mwenge) svn:r8681
* r8973@totoro: nickm | 2006-10-09 11:45:47 -0400Nick Mathewson2006-10-09
| | | | | | | | | | | Touch up last patch (to add REASON to CIRC events): make some reasons more sensible, send reasons only to controllers that have enabled extended events, and clean up whitespace. svn:r8672
* r8972@totoro: nickm | 2006-10-09 10:36:22 -0400Nick Mathewson2006-10-09
| | | | | | | Patch from Mike Perry: add a REASON field to closed and failed circ events. svn:r8671
* remove some old debugging codeRoger Dingledine2006-10-08
| | | | svn:r8657
* r8933@totoro: nickm | 2006-10-07 20:33:16 -0400Nick Mathewson2006-10-08
| | | | | | | whitespace fixes; add changelog for last commit. svn:r8644
* r8926@totoro: nickm | 2006-10-07 15:56:14 -0400Nick Mathewson2006-10-07
| | | | | | | refactor circuit_list_path and circuit_list_path_verbose into a common _impl function. svn:r8642
* finish poking and prodding. i'm all happy now.Roger Dingledine2006-10-07
| | | | svn:r8633
* more minor cleanupsRoger Dingledine2006-10-07
| | | | svn:r8630