summaryrefslogtreecommitdiff
path: root/src/or
AgeCommit message (Collapse)Author
2005-04-08Add missing "char"Nick Mathewson
svn:r4054
2005-04-07tie MAX_DIR_SIZE to MAX_BUF_SIZERoger Dingledine
resolve bug 80 svn:r4052
2005-04-07fix format bugRoger Dingledine
svn:r4051
2005-04-07only whine about clock skew from the dirserver if he's a trustedRoger Dingledine
dirserver. svn:r4048
2005-04-07Improve conn_*_to_string; add circuit_state_to_string; make ↵Nick Mathewson
skewed-descriptor messages better. svn:r4047
2005-04-07allow servers to publish descriptors from 12 hours in the future.Roger Dingledine
hopefully this will allow more slack and let crummier servers help out too. svn:r4046
2005-04-07Change conn_(type|state)_to_string from const arrays to switch functions so ↵Nick Mathewson
we (I) will not make Tor crash the next time we (I) add a new state. svn:r4045
2005-04-07add function commentRoger Dingledine
svn:r4043
2005-04-07We have a bug that I can't find. Sometimes, very rarely, cpuworkers getRoger Dingledine
stuck in the 'busy' state, even though the cpuworker process thinks of itself as idle. I don't know why. But here's a workaround to kill any cpuworker that's been busy for more than 100 seconds. svn:r4042
2005-04-07Try RB_TREE instead of SPLAY_TREE, but with a single-entry caching optimization.Nick Mathewson
svn:r4041
2005-04-07Make compare_orconn_circid_entries marginally faster and inlined, if that helpsNick Mathewson
svn:r4040
2005-04-06When we connect and finish TLS negotiation with address:port, it is obvious ↵Nick Mathewson
that any other key or nickname we might know about (as an authdirserver) does not actually exist at address:port. svn:r4036
2005-04-06stop wasting time doing a case insensitive comparison for every dns nameRoger Dingledine
every time we do any lookup. canonicalize the names to lowercase and be done with it. svn:r4035
2005-04-06blow away most calls to assert_all_pending_dns_resolves_ok, sinceRoger Dingledine
they're eating our cpu. svn:r4034
2005-04-06bugfix: chdir to your datadirectory at the *end* of theRoger Dingledine
daemonize process, not the beginning. this was a problem because the first time you run tor, if your datadir isn't there, and you have runasdaemon set to 1, it will try to chdir to it before it tries to create it. oops. svn:r4033
2005-04-06quiet another instance where we whine to an innocent OR operator'sRoger Dingledine
logs when some other server switches keys unexpectedly. svn:r4032
2005-04-06oh, and accept() into the right place, too.Roger Dingledine
svn:r4029
2005-04-06Forward-port the checking ofRoger Dingledine
sin_addr.s_addr == 0 || sin->sin_port == 0. This just happened on moria2, so I guess it happens rarely on Linux as well as OS X. We can't afford to accept OR conns from 0.0.0.0:0, since we send created cells back to the first addr:port that matches, and we'd better not send them to the wrong place. So, let's drop them all for now, and see if we can find a pattern later. svn:r4028
2005-04-06fix an assert trigger: when we have the rare case of acceptingRoger Dingledine
a conn on 0.0.0.0:0, then when we look through the connection array, we'll find any of the workers. this is no good. svn:r4027
2005-04-06Rename circuit_get_by_stream to circuit_get_by_edge_conn, and actually start ↵Nick Mathewson
using it. Watch out, kids! svn:r4026
2005-04-06when using preferred entry or exit nodes, ignore whetherRoger Dingledine
the circuit wants uptime or capacity. they asked for the nodes, they get the nodes. svn:r4025
2005-04-06Add a pointer from edge connections to their corresponding circuit (ulp!); ↵Nick Mathewson
add some debugging sanity-checking for cirid_orconn_map stuff svn:r4024
2005-04-06Fix bug in last commit when no circid can be foundNick Mathewson
svn:r4023
2005-04-06Fix format warningNick Mathewson
svn:r4022
2005-04-06note some features we intend to add.Roger Dingledine
svn:r4021
2005-04-06Hopefully, this will make ORs much faster, and not break them: keep a big ↵Nick Mathewson
splay tree of (circid,orconn)->circuit mappings to make circuit_get_by_circid_conn much faster. svn:r4020
2005-04-06a bit more data on gene's dns threading bugRoger Dingledine
svn:r4019
2005-04-06update conn-type-state-strings to handle https states for ORsRoger Dingledine
svn:r4018
2005-04-06Add missing comma. OopsNick Mathewson
svn:r4017
2005-04-06Handle changed router status correctly when reloading fingerprint fileNick Mathewson
svn:r4016
2005-04-06Log msg spelling fixNick Mathewson
svn:r4015
2005-04-06When we're connecting to an OR and he's got a different nickname/keyRoger Dingledine
than we were expecting, only complain loudly if we're an OP or an authdirserver. Complaining loudly to OR admins just confuses people. svn:r4014
2005-04-06Fix Tor for no-threading compilation: move connection_unregister from ↵Nick Mathewson
_connection_free to connection_free. svn:r4013
2005-04-06Change replacement semantics for directory entries: fix bug 121.Nick Mathewson
svn:r4012
2005-04-05Revise control spec and implementation to allow all log messages to be sent ↵Nick Mathewson
to controller with their severities intact. svn:r4010
2005-04-04Make last fix work on windows too.Nick Mathewson
svn:r4009
2005-04-04Fix possible bug on threading platforms with running out of fds do to ↵Nick Mathewson
cpuworkers and dnsworkers. svn:r4008
2005-04-04client now retries when streams end early for 'hibernating' orRoger Dingledine
'resource limit' reasons; refactor. svn:r4004
2005-04-03automatically approve nodes running 0.1.0.2-rc or laterRoger Dingledine
svn:r4001
2005-04-03Only warn once per nickname from add_nickname_list_to_smartlist per failure.Nick Mathewson
svn:r3997
2005-04-03Adjust maximum skew and age for rendezvous descriptors: adjust code to make ↵Nick Mathewson
skew add to age. svn:r3995
2005-04-03clean up the circuit-mark-for-close patchRoger Dingledine
svn:r3994
2005-04-03start sending 'truncated' cells back rather than destroy cells,Roger Dingledine
if the circuit closes in front of you. svn:r3993
2005-04-03Move most of *_mark_for_close out of macros.Nick Mathewson
svn:r3992
2005-04-02Give better warnings if connection_close_unattached_ap gets called twice or ↵Nick Mathewson
called on a marked connection; rename it to connection_mark_unattached_ap. svn:r3990
2005-04-02Better messages when POSTDESCRIPTOR failsNick Mathewson
svn:r3989
2005-04-02We're printing the host mask wrong in exit policies in server descriptors.Roger Dingledine
I believe this isn't a critical bug tho, since we're still obeying the exit policy internally. svn:r3987
2005-04-02improved log error messageRoger Dingledine
svn:r3986
2005-04-01update copyright notices.Nick Mathewson
svn:r3982
2005-04-01Short-term fix: prevent possible segfault in connection_close_unattached_apNick Mathewson
svn:r3970