summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2005-01-22comment SocksPort better as it pertains to serversRoger Dingledine
svn:r3413
2005-01-22fwd-port win32 isprint fixNick Mathewson
svn:r3410
2005-01-22Fix dumb bug in unittests.Nick Mathewson
svn:r3409
2005-01-22forward-port: fix win32 compileRoger Dingledine
svn:r3406
2005-01-21clean a couple of messagesNick Mathewson
svn:r3401
2005-01-21special case so we don't yell when an empty http body doesn't specify aRoger Dingledine
content-encoding svn:r3397
2005-01-21if we get an incredibly skewed timestamp from a dirserver mirror thatRoger Dingledine
isn't a verified OR, don't complain very loudly -- it's probably him that's wrong. svn:r3395
2005-01-20Log the offending policy, not the first policyNick Mathewson
svn:r3394
2005-01-20Appease another 64-bit warningNick Mathewson
svn:r3392
2005-01-20Have reason string for serverdesc post requests contain actual serverdesc ↵Nick Mathewson
status. Also fix return values of dirserv_add_descriptor to work as advertised. svn:r3391
2005-01-20Appease weasel's paranoid 64-bit compiler.Nick Mathewson
svn:r3389
2005-01-20give a header file for ntohsRoger Dingledine
svn:r3388
2005-01-20start to fix http status stuff, more work neededRoger Dingledine
svn:r3387
2005-01-20Give better reason phrases in HTTP status lines. Start resolving task #67. ↵Nick Mathewson
(Messages still need to be better.) svn:r3386
2005-01-20Compilation fixes for win32 version detection.Nick Mathewson
svn:r3385
2005-01-20Make zlib detection happy on little-endian platforms; fix unit tests.Nick Mathewson
svn:r3384
2005-01-20Warn when exit policy implicitly allows local addresses.Nick Mathewson
svn:r3383
2005-01-20The crowning hidden-service patch: prefer non-internal circuitsRoger Dingledine
for normal connections, so we don't spend our internal circs on other stuff and not have them when we need them. svn:r3380
2005-01-19Handle unavailable hidden services better. We try each intro pointRoger Dingledine
until none are left, then we try to refetch the descriptor. If it's the same one we had before, then close streams right then. Whenever a new stream arrives, even if it's right after, optimistically try refetching the descriptor, just in case. svn:r3379
2005-01-19make cannibalizing for rend circs prey on the pleb circs firstRoger Dingledine
if possible, rather than the elite ones. svn:r3378
2005-01-19Detect windows platform correctlyNick Mathewson
svn:r3377
2005-01-19Make detect_compression_method work on platforms with more evil chars.Nick Mathewson
svn:r3376
2005-01-19Add unittests for compression detection. Make all rendezvous descriptors ↵Nick Mathewson
"plausible". svn:r3375
2005-01-19Workaround for webservers that lie about Content-Encoding: Tor now tries to ↵Nick Mathewson
autodetect compressed directories and compression itself. (resolves bug 65) svn:r3374
2005-01-19Give more useful log messages when the tor process closes dns/cpuworker ↵Nick Mathewson
connections. "Error: Success!" makes us seem like crazy people." svn:r3373
2005-01-19fix another bug where general exit circs were looking at rendezvousRoger Dingledine
streams. consolidate the looking into one function so it doesn't happen again. svn:r3372
2005-01-19better comments for exit policies in torrc.sampleRoger Dingledine
svn:r3371
2005-01-19bugfix for cvs: we were needing a rendezvous circ, so we cannibalizedRoger Dingledine
a general circ, and called rend_client_rendcirc_has_opened(), which called connection_ap_attach_pending(), which was needing a rendezvous circ, so it cannibalized a general circuit, and called ... svn:r3370
2005-01-19make it clearer why FooPort and FooBindAddress are separateRoger Dingledine
svn:r3369
2005-01-18Basic windows libevent fixesNick Mathewson
svn:r3366
2005-01-18allow bandwidthburst to be smaller, but whine if it's small.Roger Dingledine
svn:r3364
2005-01-17remove some extra-verbose logsRoger Dingledine
svn:r3361
2005-01-17Introduce a notion of 'internal' circs, which are chosen without regardRoger Dingledine
to the exit policy of the last hop. Intro and rendezvous circs must be internal circs, to avoid leaking information. Resolve and connect streams can use internal circs if they want. New circuit pooling algorithm: make sure to have enough circs around to satisfy any predicted ports, and also make sure to have 2 internal circs around if we've required internal circs lately (with high uptime if we've seen that lately). Split NewCircuitPeriod config option into NewCircuitPeriod (30 secs), which describes how often we retry making new circuits if current ones are dirty, and MaxCircuitDirtiness (10 mins), which describes how long we're willing to make use of an already-dirty circuit. Once rendezvous circuits are established, keep using the same circuit as long as you attach a new stream to it at least every 10 minutes. (So web browsing doesn't require you to build new rend circs every 30 seconds.) Cannibalize GENERAL circs to be C_REND, C_INTRO, S_INTRO, and S_REND circ as necessary, if there are any completed ones lying around when we try to launch one. Re-instate the ifdef's to use version-0 style introduce cells, since there was yet another bug in handling version-1 style. We'll try switching over again after 0.0.9 is obsolete. Bugfix: when choosing an exit node for a new non-internal circ, don't take into account whether it'll be useful for any pending x.onion addresses -- it won't. Bugfix: we weren't actually publishing the hidden service descriptor when it became dirty. So we only published it every 20 minutes or so, which means when you first start your Tor, the hidden service will seem broken. svn:r3360
2005-01-16make tor-resolve print the Tor version on --version tooRoger Dingledine
svn:r3358
2005-01-14reset published uptime when you wake up from hibernation,Roger Dingledine
since if you hibernate daily a published uptime of >1day will be misleading. svn:r3356
2005-01-14when the hidden service launches a rendezvous circ, make sure itRoger Dingledine
provides good uptime if any virtual_port of the service wants that. svn:r3355
2005-01-13Move call to event_init() immediately after start_daemon(); move ↵Nick Mathewson
start_daemon earlier. This should fix using libevent with RunAsDaemon. svn:r3354
2005-01-13get rid of 0.0.8 backwards compatibilityRoger Dingledine
svn:r3353
2005-01-13start generating version 1 style introduce cellsRoger Dingledine
svn:r3352
2005-01-13when deciding if a port is handled and the port demands uptime, don'tRoger Dingledine
consider it handled if there's a circ that fits but isn't high-uptime. svn:r3349
2005-01-12more cleanupRoger Dingledine
svn:r3347
2005-01-12fix another integer underflow caused by buckets going negativeRoger Dingledine
svn:r3346
2005-01-12fix up some commentsRoger Dingledine
svn:r3345
2005-01-12tolerate bandwidtch buckets going negative (i hope)Roger Dingledine
svn:r3344
2005-01-12Make Tor use Niels Provos's libevent instead of it's currentNick Mathewson
poll-but-sometimes-select mess. This will let us use faster async cores (like epoll, kpoll, and /dev/poll), and hopefully work better on Windows too. There are some fairly nasty changes to main.c here; this will almost certainly break something. But hey, that's what alphas are for. svn:r3341
2005-01-12add more chat and interactive protocols to LongLivedPortsRoger Dingledine
svn:r3340
2005-01-12Annotate circuits w/ whether they aim to contain high uptime nodes and/orRoger Dingledine
high capacity nodes. When building circuits, choose appropriate nodes. New config option LongLivedPorts to indicate application streams that will want high uptime circuits. When attaching a stream to a circuit, pay attention to its requirements. This means that every single node in an intro rend circuit, not just the last one, will have a minimum uptime. Boost the min uptime from an hour to 24 hours. svn:r3339
2005-01-12clean up smartlist_string_isin so callers don't have to manage bufsRoger Dingledine
themselves svn:r3338
2005-01-11if somebody starts his tor server in jan 2004 and then fixes hisRoger Dingledine
clock, don't make his published uptime be a year. svn:r3337
2005-01-10if you're a server and the auth dirservers are down, go to any otherRoger Dingledine
server. only give up hope on network reachability when no other servers are reachable either. svn:r3335