aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
AgeCommit message (Collapse)Author
2006-02-09stop calling it a "libevent poll" -- the word "poll" hasRoger Dingledine
other meaning in this context that are confusing. svn:r5936
2006-02-05as soon as we've fetched some more directory info, that's timeRoger Dingledine
to think about downloading more server descriptors. this way we don't have a 10 second pause in initial bootstrapping. svn:r5916
2006-02-05forward-port the part where ordinary users try to fetch directoriesRoger Dingledine
less often. not critical but might as well stay in sync with stable. svn:r5910
2006-02-01don't try to upload hidden service descriptors until we haveRoger Dingledine
established a circuit. svn:r5884
2006-01-29only start testing reachability once we've established a circuit.Roger Dingledine
this will make startup on dirservers less noisy. it may also break things in subtle ways. svn:r5878
2006-01-26a slightly more useful message when you get a sighupRoger Dingledine
svn:r5869
2006-01-23Stop complaining loudly whenever some poor client falls offRoger Dingledine
the network before we finish writing to him. svn:r5850
2006-01-11oh hey. we were hanging up on every tor client because heRoger Dingledine
was obsolete as soon as he started. big oops. svn:r5807
2006-01-11Fix wide linesNick Mathewson
svn:r5793
2006-01-10entry nodes are now entry guards.Roger Dingledine
this is our last easy chance for a wholesale change. heave ho. svn:r5782
2006-01-10balance the reachability testing so a smidgen of it happensRoger Dingledine
every 10 seconds. this way we don't try to do 500 tls's at once every 20 minutes. svn:r5763
2006-01-07bugfix: we were leaving open duplicate connections to other ORsRoger Dingledine
for a week, rather than closing them once we detect a duplicate. also, avoid some duplicate mark-for-closes in connection-housekeeping. svn:r5752
2006-01-07and get the log arguments rightRoger Dingledine
svn:r5747
2006-01-07a more correct log messageRoger Dingledine
svn:r5746
2005-12-31Some tor servers process billions of cells in a matter of days.Roger Dingledine
These statistics need to be uint64_t's. svn:r5686
2005-12-28helper nodes are dead. long live entry nodes.Roger Dingledine
(config options EntryNodes and StrictEntryNodes still not implemented.) svn:r5673
2005-12-27normalize spacesNick Mathewson
svn:r5658
2005-12-23Keep bandwidth history accross restarts/crashesPeter Palfrader
svn:r5637
2005-12-15Instead of "Network down", say "Is your network connection down?"Nick Mathewson
svn:r5607
2005-12-15Clean fake_status a bit. Switch from has_fetched_directory to ↵Nick Mathewson
have_minimum_dir_info, and make the latter function smarter. svn:r5591
2005-12-14Bite the bullet and limit all our source lines to 80 characters, the way IBM ↵Nick Mathewson
intended. svn:r5582
2005-12-10when we changed from log_fn to debug/info/notice/warn/err,Roger Dingledine
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
2005-12-09In my private little universe, terminals are still 80 columns. Impose a ↵Nick Mathewson
160-character-per-line limit; this will creep down. svn:r5548
2005-12-08when we're checking reachability, make it clearer in the logsRoger Dingledine
what to expect. svn:r5538
2005-12-03Expunge remaining places where we used "tree" to mean "associative array".Nick Mathewson
svn:r5490
2005-11-30Move connection_or_remove_from_identity_map() to connection_unlink, but dont ↵Nick Mathewson
remove the other; just make it warn. svn:r5470
2005-11-26when event_add or event_del fail, tell us why.Roger Dingledine
(nick, do i have my libevent strerror dance moves correct?) svn:r5462
2005-11-26"How about 'never'? Does 'never' work for you?"Nick Mathewson
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
2005-11-23Dump bytes held to store descriptors.Nick Mathewson
svn:r5443
2005-11-19Recover better from TCP connections to Tor servers that are broken butRoger Dingledine
don't tell you (it happens!); and rotate TLS connections once a week. 1) If an OR conn becomes more than a week old, make it obsolete. 2) If it's obsolete and empty, kill it. 3) When an OR makes a second connection to you, allow it. 4) If we want to send a new create cell, but the best conn we've got is obsolete, and the router is 0.1.1.9-alpha-cvs or later, ask for a new conn instead. 5) When we time out on circuit building on the first hop, make that connection obsolete. svn:r5429
2005-11-1815*60 is 15 minutes, not 5Peter Palfrader
svn:r5424
2005-11-18Remove ip address change flapping detection. It is not really needed and I ↵Peter Palfrader
do not think it works quite right. svn:r5423
2005-11-15Make new logging stuff work on windows; fix a couple of windows typos.Nick Mathewson
svn:r5375
2005-11-14shorten more of the startup log messagesRoger Dingledine
svn:r5368
2005-11-04prevent duplicat mark-for-closeNick Mathewson
svn:r5347
2005-11-01enable code to remove members of old_routers when it gets big.Nick Mathewson
svn:r5345
2005-10-29Do round-robin writes of at most 16 kB per write. This mightRoger Dingledine
be more fair on loaded Tor servers, and it might resolve our Windows crash bug. It might also slow things down. svn:r5332
2005-10-25Remove last vestiges of old logging interface.Nick Mathewson
svn:r5317
2005-10-25Change more files to new loggin interface. 3 left.Nick Mathewson
svn:r5310
2005-10-18fix some typosRoger Dingledine
svn:r5283
2005-10-17Make a few INFO log lines into DEBUGPeter Palfrader
svn:r5257
2005-10-17more log unclutteringRoger Dingledine
svn:r5254
2005-10-17start the process of reducing clutter in server logsRoger Dingledine
svn:r5253
2005-10-16cut out a warning that doesn't need to warnRoger Dingledine
svn:r5252
2005-10-14Try to extract as many descriptors as possible from truncated http ↵Nick Mathewson
responses. (when DIR_PURPOSE_FETCH_ROUTERDESC) svn:r5249
2005-10-12Check if our IP address has changed every 5 minutes. If it has, update our ↵Peter Palfrader
server descriptor, but not too often svn:r5246
2005-10-06Once an hour (not just on startup) give OpenSSL some more entropy.Nick Mathewson
Add entropy in 512-bit chunks, not 160-bit chunks. (This latter change is voodoo.) svn:r5211
2005-10-05Rate-limit warnings related to unrecognized MyFamily elements.Nick Mathewson
svn:r5204
2005-10-05call circuit_expire_all_dirty_circs() on do_hup().Roger Dingledine
there, now we use it. svn:r5202
2005-10-05replace former relaunches of directory downloads with reset of failure count ↵Nick Mathewson
and relaunch of status downloads. Fix memory leak in trusted_dir_server_t. Reset "last download attempted" time when resetting failure counts. svn:r5195