aboutsummaryrefslogtreecommitdiff
path: root/src/or
Commit message (Collapse)AuthorAge
* Check magic when removing old connection from map.Nick Mathewson2005-12-05
| | | | svn:r5508
* Set chosen_exit_name to something we are not about to zero.Nick Mathewson2005-12-05
| | | | svn:r5507
* When parsing foo.exit, if foo is unknown, and we are leaving circuits ↵Nick Mathewson2005-12-05
| | | | | | unattached, set the chosen_exit field and leave the address empty svn:r5504
* Bugfix for trackhostexits: write down the fingerprint of the chosen exit,Roger Dingledine2005-12-05
| | | | | | | not its nickname, because the chosen exit might not be verified. svn:r5499
* fix a log message to be mildly more helpfulRoger Dingledine2005-12-04
| | | | svn:r5498
* Fix another time comparison bug in circuit_stream_is_being_handled().Roger Dingledine2005-12-04
| | | | | | | | Nick, can you confirm this one? This is also a backport candidate. svn:r5497
* ok, i know this one was a bug. we were expiring open generalRoger Dingledine2005-12-04
| | | | | | | circuits after they had been around for 30 seconds. svn:r5496
* take back half of my bugfix. comparing times sucks.Roger Dingledine2005-12-04
| | | | | | | but leave the other half. svn:r5495
* fix the first bug with our optimization to circuit_expire_building():Roger Dingledine2005-12-04
| | | | | | | | | | we were killing off rendezvous circuits unless they magically time-warped to be too old before we got around to killing them, in which case we would leave them alone. this made it hard to rendezvous with hidden services. svn:r5494
* Clean up some comments; remove some dead codeNick Mathewson2005-12-03
| | | | svn:r5493
* Use a switch statement and some mild refactoring to try to speed up ↵Nick Mathewson2005-12-03
| | | | | | circuit_expire_building svn:r5492
* 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
* Remove "tree" references from dns.Nick Mathewson2005-12-03
| | | | svn:r5488
* Add a benchmark-aes function to test.c. Off by default.Nick Mathewson2005-12-01
| | | | svn:r5485
* assert_buf_ok was showing up in the profile; remove it from critical-path ↵Nick Mathewson2005-11-30
| | | | | | functions, since it hasnt triggered for ages. svn:r5479
* Fix some verbose warnings and remove an unneeded include.Nick Mathewson2005-11-30
| | | | svn:r5472
* remove some functions that are not used; #if0 out some files that are not ↵Nick Mathewson2005-11-30
| | | | | | likely to be used. svn:r5471
* Move connection_or_remove_from_identity_map() to connection_unlink, but dont ↵Nick Mathewson2005-11-30
| | | | | | remove the other; just make it warn. svn:r5470
* Rename connection_get_by_identity_digest to reflect that it is OR-only. ↵Nick Mathewson2005-11-30
| | | | | | Make it use a hashtable instead of a linear search. svn:r5469
* Funny. I could have sworn that it compiled.Nick Mathewson2005-11-29
| | | | svn:r5467
* Fix a bug weasel found: when we are an authority and somebody requests "all" ↵Nick Mathewson2005-11-29
| | | | | | statuses, cconsider regenerating our own. svn:r5466
* Make arguments to circuit_set_circid_orconn match the connection that is ↵Nick Mathewson2005-11-29
| | | | | | closing in circuit_about_to_close_connection. This accounts for our mysterious "arbitrary ram gets decremented!" bug. svn:r5465
* Avoid a segfault in routerlist_reset_warnings()Nick Mathewson2005-11-28
| | | | svn:r5464
* 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
* when event_add or event_del fail, tell us why.Roger Dingledine2005-11-26
| | | | | | | (nick, do i have my libevent strerror dance moves correct?) svn:r5462
* clean up broken commentRoger Dingledine2005-11-26
| | | | svn:r5461
* "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
* Cut down a common call to circuit_get_by_conn by about half.Nick Mathewson2005-11-26
| | | | svn:r5459
* 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
* when calling connection_get_by_identity_digest, don't do a memcmpRoger Dingledine2005-11-25
| | | | | | | for non-OR conns. this should save a bit of time. svn:r5456
* minor cleanupRoger Dingledine2005-11-24
| | | | svn:r5454
* Fix a bug found by Lasse Overlier: when we were making internal circuitsRoger Dingledine2005-11-24
| | | | | | | | | (intended to be cannibalized later for rendezvous and introduction circuits), we were picking them so that they had useful exit nodes. There was no need for this, and it actually aids some statistical attacks. svn:r5453
* remove some more dead code (found while hunting lasse's bug)Roger Dingledine2005-11-24
| | | | svn:r5452
* get rid of some unused variablesRoger Dingledine2005-11-24
| | | | svn:r5451
* comment that scary-looking function.Roger Dingledine2005-11-23
| | | | svn:r5447
* Fix dumb logic error that kept some old descripttors from getting the axe.Nick Mathewson2005-11-23
| | | | svn:r5446
* Make dropping very old descriptors faster (remove old correctness check). ↵Nick Mathewson2005-11-23
| | | | | | Track bytes dropped that are still in our store or journal, and rebuild when it gets very high. svn:r5445
* e more aggressive about calling routerlist_remove_old_routers()Nick Mathewson2005-11-23
| | | | svn:r5444
* Dump bytes held to store descriptors.Nick Mathewson2005-11-23
| | | | svn:r5443
* Track how many bytes we have in signed descriptors. Try to make sure we are ↵Nick Mathewson2005-11-23
| | | | | | tracking this right. Somebody should valgrind a dirserver on an example net. There should be code to dump this value. svn:r5442
* Replace balanced trees with hash tables: this should make stuff ↵Nick Mathewson2005-11-23
| | | | | | significantly faster. svn:r5441
* Avoid spurious re-launch of first pending requested descriptorNick Mathewson2005-11-22
| | | | svn:r5439
* Ancient gcc does not like you when you declare variables in the middle of a ↵Peter Palfrader2005-11-20
| | | | | | block svn:r5437
* Add a new controller event type that allows controllers to get allPeter Palfrader2005-11-19
| | | | | | | | server descriptors that were uploaded to a router in its role as authoritative dirserver. svn:r5436
* be less eager to decide that the entire network is downRoger Dingledine2005-11-19
| | | | svn:r5434
* and another instance where i was trying to be too sneakyRoger Dingledine2005-11-19
| | | | svn:r5433
* actually listen when we try to route our dir connection via tor.Roger Dingledine2005-11-19
| | | | svn:r5432
* Start obeying our firewall options more rigorously:Roger Dingledine2005-11-19
| | | | | | | | | | | | - If we can't get to a dirserver directly, try going via Tor. - Don't ever try to connect (as a client) to a place our firewall options forbid. - If we specify a proxy and also firewall options, obey the firewall options even when we're using the proxy: some proxies can only proxy to certain destinations. svn:r5431