aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
Commit message (Collapse)AuthorAge
...
* Free even more things on shutdown. Temporarily move tor_free_all out from ↵Nick Mathewson2005-02-11
| | | | | | #ifdef so it gets tested more. svn:r3614
* Add more functions to free things to help dmalloc allong.Nick Mathewson2005-02-10
| | | | svn:r3613
* don't list version in the win32 service display name or service name,Roger Dingledine2005-02-09
| | | | | | | | since they'll keep changing and people will get messed up about which one is installed. svn:r3592
* Re-normalize whitespace; make "make check-spaces" happyNick Mathewson2005-02-05
| | | | svn:r3566
* forward-port NT service patchNick Mathewson2005-02-05
| | | | svn:r3565
* another minor fixRoger Dingledine2005-02-03
| | | | svn:r3511
* Add --with-dmalloc configure optionPeter Palfrader2005-02-03
| | | | svn:r3508
* Write a function header for Roger so he can fill it with lifePeter Palfrader2005-02-03
| | | | svn:r3507
* sometimes, a conn on the closeable_lst gets absolutelyRoger Dingledine2005-02-02
| | | | | | | clobbered. maybe this will help me find out why. svn:r3498
* define TOR_FRAGILE if you want tor to give you a core whenRoger Dingledine2005-02-01
| | | | | | | | something goes wrong. this should only be used by people actively tracking bugs. svn:r3487
* lay a trap for situations where we connection_free somethingRoger Dingledine2005-01-31
| | | | | | | | | | that's still on one of the lists. in particular, this will detect situations where we mark-for-close and then free it ourselves. svn:r3475
* stop the infinite loop of freeing the same connection_t over andRoger Dingledine2005-01-31
| | | | | | | over when it's not linked into the connection_array svn:r3474
* Stop crashing when we're asking to close_if_marked a conn thatRoger Dingledine2005-01-30
| | | | | | | | | | | hasn't been connection_added yet. This happens when an exit conn is in dns_wait and we get a relay end cell for it before it finishes. We were silently leaking each of these marked conns in 0.0.9.x. Now we actually free them. svn:r3470
* try to find the corrupt closeable_connection_lst entry earlyRoger Dingledine2005-01-30
| | | | svn:r3468
* comment about a bug wrt clock skewRoger Dingledine2005-01-30
| | | | svn:r3461
* forward-port the dns and maxconn fixesRoger Dingledine2005-01-28
| | | | svn:r3448
* Forward-port win32 service patch; try to clean it a touch.Nick Mathewson2005-01-27
| | | | svn:r3438
* Appease another 64-bit warningNick Mathewson2005-01-20
| | | | svn:r3392
* Appease weasel's paranoid 64-bit compiler.Nick Mathewson2005-01-20
| | | | svn:r3389
* Introduce a notion of 'internal' circs, which are chosen without regardRoger Dingledine2005-01-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Move call to event_init() immediately after start_daemon(); move ↵Nick Mathewson2005-01-13
| | | | | | start_daemon earlier. This should fix using libevent with RunAsDaemon. svn:r3354
* more cleanupRoger Dingledine2005-01-12
| | | | svn:r3347
* fix up some commentsRoger Dingledine2005-01-12
| | | | svn:r3345
* tolerate bandwidtch buckets going negative (i hope)Roger Dingledine2005-01-12
| | | | svn:r3344
* Make Tor use Niels Provos's libevent instead of it's currentNick Mathewson2005-01-12
| | | | | | | | | | | | 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
* if somebody starts his tor server in jan 2004 and then fixes hisRoger Dingledine2005-01-11
| | | | | | | clock, don't make his published uptime be a year. svn:r3337
* separate time_of_process_start from stats_n_seconds_uptime:Roger Dingledine2005-01-10
| | | | | | | | | now we reset uptime when a dir fetch entirely fails. this hopefully has something to do with stability of being on the network. svn:r3333
* it helps to use the correct name for the structRoger Dingledine2005-01-10
| | | | svn:r3331
* when pruning circuit-wait streams when a dir fetch failed,Roger Dingledine2005-01-10
| | | | | | | | refer in logs to the destination address, not the address of the application connection. svn:r3330
* when we haven't fetched a directory yet, or the last time weRoger Dingledine2005-01-07
| | | | | | | | | | | | tried they were all unreachable, assume we are not connected to the network. when an application request comes in during this state, be optimistic and assume we just reconnected. fetch a new directory and if it works, begin making circuits. svn:r3327
* finish marking my comment in main.cRoger Dingledine2005-01-06
| | | | svn:r3318
* clean up string printing in relay logsRoger Dingledine2005-01-06
| | | | svn:r3317
* Implement SIGNAL control command.Nick Mathewson2005-01-05
| | | | svn:r3307
* Use correct logic to decide whether there are more directory servers to retry.Nick Mathewson2005-01-03
| | | | svn:r3257
* stop calling assert_connection_ok(conn, time(NULL)) on every singleRoger Dingledine2004-12-25
| | | | | | | conn on every single loop. svn:r3229
* stop telling win32 folks they have a bug just because we haven't finishedRoger Dingledine2004-12-25
| | | | | | | making tor work on win32 yet. svn:r3227
* move network_init from or/main to common/compatRoger Dingledine2004-12-22
| | | | | | | | call network_init in tor-resolve.c too move tor_lookup_hostname from common/util to common/compat svn:r3203
* respond to an 009 XXXRoger Dingledine2004-12-22
| | | | svn:r3201
* Clarify confusing messageNick Mathewson2004-12-16
| | | | svn:r3151
* note a future thing we should doRoger Dingledine2004-12-13
| | | | svn:r3141
* clean up logging,Roger Dingledine2004-12-13
| | | | | | | | | make it clearer which warns are bugs, make the control log event match its specification, point out a bug in how we deal with failure when renewing the tls context. svn:r3138
* Only launch dns workers when we are actually starting a server.Nick Mathewson2004-12-13
| | | | svn:r3137
* log bytes written with kill -USR1 tooRoger Dingledine2004-12-07
| | | | svn:r3112
* salvage another 300 bytes per hupRoger Dingledine2004-12-07
| | | | svn:r3106
* Make unit tests work on win32Nick Mathewson2004-12-07
| | | | svn:r3094
* Spell-check strings and commentsNick Mathewson2004-12-01
| | | | svn:r3052
* do even less inside our signal handler,Roger Dingledine2004-12-01
| | | | | | | just to be extra paranoidly safe svn:r3050
* Let resolve conns retry/expire also, rather than sticking around forever.Roger Dingledine2004-11-30
| | | | | | | | | | | Put the check-if-requested-exitrouter-will-reject-us code in the circuit_attach loop, so it gets checked periodically and not just once at the beginning. This is useful in case the routerlist changes, but also in case the address gets resolved into something that we learn we'll reject. svn:r3039
* Suggestion from weasel: Make tor --version --version dump the cvs Id of ↵Nick Mathewson2004-11-29
| | | | | | every file. svn:r3019
* wrong is ok, and right is fine, but in between is apparentlyRoger Dingledine2004-11-28
| | | | | | | totally unacceptable to me. svn:r3005