aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
Commit message (Collapse)AuthorAge
* if we as a directory mirror don't know of any v1 directoryRoger Dingledine2006-03-15
| | | | | | | authorities, then don't try to cache any v1 directories. svn:r6162
* when event_add or event_del fail, tell us why.Roger Dingledine2006-03-13
| | | | svn:r6156
* More cleanups noticed by weasel; also, remove macros that nobody uses.Nick Mathewson2006-03-12
| | | | svn:r6143
* Cleanup on time-relaqted constants. New conventions:Nick Mathewson2006-03-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) Surround all constants by (parens), whether we'll be using them in a denominator or not. 2) Express all time periods as products (24*60*60), not as multiplied-out constants (86400). 3) Comments like "(60*60) /* one hour */" are as pointless as comments like "c = a + b; /* set c to the sum of a and b */". Remove them. 4) All time periods should be #defined constants, not given inline. 5) All time periods should have doxygen comments. 6) All time periods, unless specified, are in seconds. It's not necessary to say so. To summarize, the old (lack of) style would allow: #define FOO_RETRY_INTERVAL 60*60 /* one hour (seconds) */ next_try = now + 3600; The new style is: /** How often do we reattempt foo? */ #define FOO_RETRY_INTERVAL (60*60) next_try = now + RETRY_INTERVAL; svn:r6142
* a better clean-upRoger Dingledine2006-03-12
| | | | svn:r6139
* and another fixRoger Dingledine2006-03-12
| | | | svn:r6138
* stop printing a log message at every iteration through theRoger Dingledine2006-03-09
| | | | | | | | event loop when holding open a conn for flushing but it doesn't want to flush any more bytes yet. svn:r6114
* Implement NEWNYM. Nick, did I do a bad thing?Roger Dingledine2006-03-09
| | | | svn:r6105
* clean up typoRoger Dingledine2006-03-09
| | | | svn:r6103
* Explain why we only expire open connectionsPeter Palfrader2006-02-14
| | | | svn:r6015
* Do not mark connections obsolete before they have done their TLS handshake ↵Peter Palfrader2006-02-14
| | | | | | or are at least 60 seconds old svn:r6013
* the things we do for our windows users.Roger Dingledine2006-02-13
| | | | | | | i hope they appreciate it. svn:r6004
* Happy new year!Roger Dingledine2006-02-09
| | | | svn:r5949
* stop calling it a "libevent poll" -- the word "poll" hasRoger Dingledine2006-02-09
| | | | | | | other meaning in this context that are confusing. svn:r5936
* as soon as we've fetched some more directory info, that's timeRoger Dingledine2006-02-05
| | | | | | | | to think about downloading more server descriptors. this way we don't have a 10 second pause in initial bootstrapping. svn:r5916
* forward-port the part where ordinary users try to fetch directoriesRoger Dingledine2006-02-05
| | | | | | | less often. not critical but might as well stay in sync with stable. svn:r5910
* don't try to upload hidden service descriptors until we haveRoger Dingledine2006-02-01
| | | | | | | established a circuit. svn:r5884
* only start testing reachability once we've established a circuit.Roger Dingledine2006-01-29
| | | | | | | | this will make startup on dirservers less noisy. it may also break things in subtle ways. svn:r5878
* a slightly more useful message when you get a sighupRoger Dingledine2006-01-26
| | | | svn:r5869
* Stop complaining loudly whenever some poor client falls offRoger Dingledine2006-01-23
| | | | | | | the network before we finish writing to him. svn:r5850
* oh hey. we were hanging up on every tor client because heRoger Dingledine2006-01-11
| | | | | | | was obsolete as soon as he started. big oops. svn:r5807
* Fix wide linesNick Mathewson2006-01-11
| | | | svn:r5793
* entry nodes are now entry guards.Roger Dingledine2006-01-10
| | | | | | | this is our last easy chance for a wholesale change. heave ho. svn:r5782
* balance the reachability testing so a smidgen of it happensRoger Dingledine2006-01-10
| | | | | | | | every 10 seconds. this way we don't try to do 500 tls's at once every 20 minutes. svn:r5763
* bugfix: we were leaving open duplicate connections to other ORsRoger Dingledine2006-01-07
| | | | | | | | | for a week, rather than closing them once we detect a duplicate. also, avoid some duplicate mark-for-closes in connection-housekeeping. svn:r5752
* and get the log arguments rightRoger Dingledine2006-01-07
| | | | svn:r5747
* a more correct log messageRoger Dingledine2006-01-07
| | | | svn:r5746
* Some tor servers process billions of cells in a matter of days.Roger Dingledine2005-12-31
| | | | | | | These statistics need to be uint64_t's. svn:r5686
* helper nodes are dead. long live entry nodes.Roger Dingledine2005-12-28
| | | | | | | | (config options EntryNodes and StrictEntryNodes still not implemented.) svn:r5673
* normalize spacesNick Mathewson2005-12-27
| | | | svn:r5658
* Keep bandwidth history accross restarts/crashesPeter Palfrader2005-12-23
| | | | svn:r5637
* Instead of "Network down", say "Is your network connection down?"Nick Mathewson2005-12-15
| | | | svn:r5607
* Clean fake_status a bit. Switch from has_fetched_directory to ↵Nick Mathewson2005-12-15
| | | | | | have_minimum_dir_info, and make the latter function smarter. svn:r5591
* Bite the bullet and limit all our source lines to 80 characters, the way IBM ↵Nick Mathewson2005-12-14
| | | | | | intended. svn:r5582
* when we changed from log_fn to debug/info/notice/warn/err,Roger Dingledine2005-12-10
| | | | | | | | | | | | 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
* In my private little universe, terminals are still 80 columns. Impose a ↵Nick Mathewson2005-12-09
| | | | | | 160-character-per-line limit; this will creep down. svn:r5548
* when we're checking reachability, make it clearer in the logsRoger Dingledine2005-12-08
| | | | | | | what to expect. svn:r5538
* Expunge remaining places where we used "tree" to mean "associative array".Nick Mathewson2005-12-03
| | | | svn:r5490
* 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
* 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
* "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
* Dump bytes held to store descriptors.Nick Mathewson2005-11-23
| | | | svn:r5443
* Recover better from TCP connections to Tor servers that are broken butRoger Dingledine2005-11-19
| | | | | | | | | | | | | | | | 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
* 15*60 is 15 minutes, not 5Peter Palfrader2005-11-18
| | | | svn:r5424
* Remove ip address change flapping detection. It is not really needed and I ↵Peter Palfrader2005-11-18
| | | | | | do not think it works quite right. svn:r5423
* Make new logging stuff work on windows; fix a couple of windows typos.Nick Mathewson2005-11-15
| | | | svn:r5375
* shorten more of the startup log messagesRoger Dingledine2005-11-14
| | | | svn:r5368
* prevent duplicat mark-for-closeNick Mathewson2005-11-04
| | | | svn:r5347
* enable code to remove members of old_routers when it gets big.Nick Mathewson2005-11-01
| | | | svn:r5345
* Do round-robin writes of at most 16 kB per write. This mightRoger Dingledine2005-10-29
| | | | | | | | be more fair on loaded Tor servers, and it might resolve our Windows crash bug. It might also slow things down. svn:r5332