aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitlist.c
Commit message (Collapse)AuthorAge
* r11287@catbus: nickm | 2007-01-23 20:30:04 -0500Nick Mathewson2007-01-24
| | | | | | | Yet more documentation. (Again, trying to see whether I have buildbot working). svn:r9396
* Fix crash with "tor --list-fingerprint" (reported by seeess).Roger Dingledine2007-01-10
| | | | svn:r9328
* r9461@Kushana: nickm | 2006-10-31 20:30:12 -0500Nick Mathewson2006-11-01
| | | | | | | Oops. Fix compile error in last build. svn:r8888
* r9457@Kushana: nickm | 2006-10-31 18:35:17 -0500Nick Mathewson2006-10-31
| | | | | | | Do not warn when an OR gives us a new circuit end reason. (This will prevent bug 351 from recurring.) svn:r8887
* r9307@Kushana: nickm | 2006-10-20 13:53:54 -0400Nick Mathewson2006-10-20
| | | | | | | Have connection_about_to_close use an end_reason field in edge_connection_t to tell what reason to tell the controller for closing the stream. Set end_reason in connection_edge_end, connection_mark_unattached_ap, and everwhere we set edge_has_sent_end. Add a changelog entry. svn:r8779
* r9272@Kushana: nickm | 2006-10-19 12:52:37 -0400Nick Mathewson2006-10-19
| | | | | | | Fix an XXX in handling destroy cells: when we get a destroy cell with reason FOO, do not tell the controller REASON=FOO. Instead, say REASON=DESTROYED REMOTE_REASON=FOO. Suggested by a conversation with Mike Perry. svn:r8760
* 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
* 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
* r8822@totoro: nickm | 2006-10-01 16:24:22 -0400Nick Mathewson2006-10-01
| | | | | | | Fix bug 303: reject attempts to use Tor as a one-hop proxy. svn:r8566
* make my bandwidth exercises actually happenRoger Dingledine2006-09-15
| | | | svn:r8400
* Send out a burst of long-range drop cells after we've established thatRoger Dingledine2006-09-15
| | | | | | | | we're reachable. Spread them over 4 circuits, so hopefully a few will be fast. This exercises our bandwidth and bootstraps us quicker. svn:r8399
* fix assert found by DreadWingKnight: now that rendezvous streamsRoger Dingledine2006-07-30
| | | | | | | | are attached to p_streams, the p_streams list can consist of both AP and EXIT conns. svn:r6945
* r6948@Kushana: nickm | 2006-07-28 10:10:35 -0400Nick Mathewson2006-07-28
| | | | | | | Identify some likely target fields for lowering; lower global_identifier (since we only use it for AP streams and origin circs). svn:r6933
* r6922@Kushana: nickm | 2006-07-26 16:32:24 -0400Nick Mathewson2006-07-27
| | | | | | | Rename some fields, compress a bitfield, and document some structs and fields svn:r6919
* r6908@Kushana: nickm | 2006-07-26 12:38:52 -0400Nick Mathewson2006-07-26
| | | | | | | Refactor connection_t into edge, or, dir, control, and base subtypes. This might save some RAM on busy exit servers, but really matters most in terms of correctness. svn:r6906
* r6903@Kushana: nickm | 2006-07-25 18:22:48 -0400Nick Mathewson2006-07-26
| | | | | | | No circuit can be both an intro point and a rend point, so we can merge both the cookie and the pk digest into one "rend_token" field for or circuits. This saves another 20 bytes per or circuit. svn:r6904
* r6902@Kushana: nickm | 2006-07-25 17:30:27 -0400Nick Mathewson2006-07-26
| | | | | | | Move rend_query to origin_circuit_t where it belongs; save another 17 bytes per OR circuit. svn:r6903
* Fix another segfault in assert_circuit_ok.Nick Mathewson2006-07-23
| | | | svn:r6818
* Don't tell anybody, but we're going OO here. This patch splitsNick Mathewson2006-07-23
| | | | | | | | | | | | | | | circuit_t into origin_circuit_t and or_circuit_t. I fixed some segaults; there may be more. We still need to move more rendezvous stuff into subtypes. This is a trial run for splitting up connection_t; if the approach is insane, please say so soon so we can do something smarter. Also, this discards the old HALF_OPEN code, which nobody seems to want. svn:r6817
* fix typo, remove extraneous variableRoger Dingledine2006-04-03
| | | | svn:r6311
* convert some more source files to the new log conventionRoger Dingledine2006-02-13
| | | | svn:r6002
* Happy new year!Roger Dingledine2006-02-09
| | | | svn:r5949
* fix bug 245: When modifying the orconn_circid_map map, we wouldRoger Dingledine2006-02-09
| | | | | | | | | | | | sometimes decrement conn->n_circuits even when there was no circuit originally. This caused conn->n_circuits to go negative. We noticed this because we were checking if connections can be closed based on conn->n_circuits == 0, so we were never closing any connection that had ever had a circuit on it. svn:r5931
* Add reasons to DESTROY and RELAY_TRUNCATED cells.Nick Mathewson2006-01-05
| | | | svn:r5734
* Bite the bullet and limit all our source lines to 80 characters, the way IBM ↵Nick Mathewson2005-12-14
| | | | | | intended. svn:r5582
* another possible patch related to circuit_free and memory stomping.Nick Mathewson2005-12-14
| | | | svn:r5580
* sometimes, when we just started tor, we haven't created thatRoger Dingledine2005-12-14
| | | | | | | smartlist yet. so don't free it. svn:r5577
* when we changed from log_fn to debug/info/notice/warn/err,Roger Dingledine2005-12-10
| | | | | | | | | | | | we screwed up the formatting in wild and unpredictable ways. fix it before it becomes convention to format logs in wild and unpredictable ways. still need to do src/common/ someday. svn:r5551
* Release memory from conn_circid_circuit_map on exit.Nick Mathewson2005-12-08
| | | | svn:r5535
* Better fix for last bug: avoids trying to double-mark circuits.Nick Mathewson2005-12-05
| | | | svn:r5511
* We were neglecting to unlink marked circuits from soon-to-close OR connections.Nick Mathewson2005-12-05
| | | | svn:r5510
* Check magic when removing old connection from map.Nick Mathewson2005-12-05
| | | | svn:r5508
* Clean up some comments; remove some dead codeNick Mathewson2005-12-03
| | | | svn:r5493
* cvs diff -u src/or/circuitlist.c | less almost never does what you want in C.Nick Mathewson2005-12-03
| | | | svn:r5491
* Expunge remaining places where we used "tree" to mean "associative array".Nick Mathewson2005-12-03
| | | | svn:r5490
* Shave off another 4.7%: remove a linear search when figuring out which ↵Nick Mathewson2005-12-03
| | | | | | circuits wanted us to open a given OR connection. svn:r5489
* when returning a list of circuits, don't return a list of the sameRoger Dingledine2005-11-28
| | | | | | | conn over and over. that's really bad for memory. svn:r5463
* "How about 'never'? Does 'never' work for you?"Nick Mathewson2005-11-26
| | | | | | | | | | | | | | | | | Weasel says circuit_get_by_conn is his main timesink. Most of its users were just checking whether OR conns had circuits, so add a circuit count to OR conns, and check that. One was circuit_about_to_close_conn, which was doing an O(n^2) series of calls to get all circs on an OR conn, so make an O(n) function for that. Finally, circuit_get_by_edge_conn was using it as a sanity test that has been around for a while but never found any actualy insanity, so kill that. circuit_get_by_conn is finally dead, which is good, since it was never sane to begin with. svn:r5460
* Start the process of treating internal circuits and exit circuitsRoger Dingledine2005-11-25
| | | | | | | | | | | | | | | | | | | separately. It's important to keep them separate because internal circuits have their last hops picked like middle hops, rather than like exit hops. So exiting on them will break the user's expectations. - Stop cannibalizing internal circuits for general exits, and stop cannibalizing exit circuits for rendezvous stuff. - Don't let new exit streams attach to internal circuits. - When deciding if we have enough circuits for internal and for exit, don't count the wrong ones. - Treat predicted resolves as predicted port 80 exits. svn:r5457
* Replace balanced trees with hash tables: this should make stuff ↵Nick Mathewson2005-11-23
| | | | | | significantly faster. svn:r5441
* misc cleanupsRoger Dingledine2005-11-19
| | | | svn:r5428
* remove some redundant (and misleading) codeRoger Dingledine2005-11-19
| | | | svn:r5425
* speed up the lookup-by-circid-orconn now that it seems thatRoger Dingledine2005-11-11
| | | | | | | our code works. svn:r5358
* when we were cannibalizing a circuit with a particular exitRoger Dingledine2005-11-11
| | | | | | | | node in mind, we weren't checking to see if that exit node was already present earlier in the circuit. oops. svn:r5357
* make circ->onionskin a pointer, not a static array. moria2 was usingRoger Dingledine2005-10-29
| | | | | | | | 125000 circuit_t's after it had been up for a few weeks, which translates to 20+ megs of wasted space. svn:r5333
* Remove last vestiges of old logging interface.Nick Mathewson2005-10-25
| | | | svn:r5317
* fix another segv, this time in circid fix.Nick Mathewson2005-10-25
| | | | svn:r5312
* Efficiency hack: call tor_fix_source_file late, not early. Add "BUG" ↵Nick Mathewson2005-10-25
| | | | | | domain. Domains are now bitmasks... just in case. Make some err msgs non-general. svn:r5309