aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
Commit message (Collapse)AuthorAge
* reenable write limiting. nick finally convinced me this wasRoger Dingledine2006-12-13
| | | | | | | | | a smart move. more todo sub-items remain for it. svn:r9101
* r11468@Kushana: nickm | 2006-12-07 14:56:57 -0500Nick Mathewson2006-12-07
| | | | | | | Revise logic used to flush state to disk. Now, we try to batch non-urgent changes so that we do not do too many writes, and we save very-non-urgent changes every once in a rare while, and we never save more than once per second. svn:r9047
* r11462@Kushana: nickm | 2006-12-07 13:42:21 -0500Nick Mathewson2006-12-07
| | | | | | | Make bandwidth accounting information get stored to the state file as well as bw_accounting. Read from the state file if it is more recent than bw_accounting, or if bw_accounting is not there. svn:r9044
* r9855@Kushana: nickm | 2006-12-04 00:55:09 -0500Nick Mathewson2006-12-04
| | | | | | | Merge circuit_about_to_close_connection and connection_about_to_close_connection. svn:r9021
* cleanups, bump to 0.1.2.4-alphaRoger Dingledine2006-12-02
| | | | svn:r9015
* r9843@Kushana: nickm | 2006-11-30 17:22:25 -0500Nick Mathewson2006-11-30
| | | | | | | Turn an xxxx0124 into an #ifdef; avoid leaking memory. svn:r9013
* r9309@totoro: nickm | 2006-11-13 19:05:41 -0500Nick Mathewson2006-11-14
| | | | | | | Whitespace fixes, and clean up code from last natd patch. svn:r8947
* r9465@auth3-479: nickm | 2006-11-01 13:16:21 -0500Nick Mathewson2006-11-01
| | | | | | | Add some temporary code to count how many *distinct* router digests we verify. (I have a sneaking suspicion that the numbers look way way high.) svn:r8890
* r9449@Kushana: nickm | 2006-10-31 00:12:02 -0500Nick Mathewson2006-10-31
| | | | | | | Dump breakdown of PK operations when we get a USR2 signal. This should help us figure out of we are doing some of them for stupid reasons. svn:r8881
* r9389@Kushana: nickm | 2006-10-25 17:46:16 -0400Nick Mathewson2006-10-25
| | | | | | | Add a CLEARDNSCACHE signal to clear the client-side DNS cache. svn:r8829
* r9386@Kushana: nickm | 2006-10-25 17:35:38 -0400Nick Mathewson2006-10-25
| | | | | | | Resolve bug 347: translate v0 controller signal numbers into internal signal numbers; leave v1 signal numbers alone. svn:r8828
* spec and implement some more status events. start to buildRoger Dingledine2006-10-23
| | | | | | | some conventions. svn:r8805
* implement a few status events, so we can make sure they work,Roger Dingledine2006-10-23
| | | | | | | and so vidalia can start handling them if it wants. svn:r8802
* r9307@Kushana: nickm | 2006-10-20 13:53:54 -0400Nick Mathewson2006-10-20
| | | | | | | Have connection_about_to_close use an end_reason field in edge_connection_t to tell what reason to tell the controller for closing the stream. Set end_reason in connection_edge_end, connection_mark_unattached_ap, and everwhere we set edge_has_sent_end. Add a changelog entry. svn:r8779
* move the 'time jump' warning back to a higher threshold.Roger Dingledine2006-10-15
| | | | | | | | this still occurs on moria sometimes if it's swapping to death. so be it. svn:r8725
* Security bugfixes:Roger Dingledine2006-10-09
| | | | | | | | When the user sends a NEWNYM signal, clear the client-side DNS cache too. Otherwise we continue to act on previous information. svn:r8679
* whitespace tweaksRoger Dingledine2006-10-09
| | | | svn:r8677
* r8970@totoro: nickm | 2006-10-09 10:12:53 -0400Nick Mathewson2006-10-09
| | | | | | | Win32 patch from Matt Edman: fix compilation bugs by casting to int; defining SSIZE_T; defining USE_TWOS_COMPLEMENT in windows orconfig.h; and using the proper names for win32 functions on GetProcAddress. Also fixes bug 295. svn:r8669
* try dirport reachability testing five times less often.Roger Dingledine2006-10-08
| | | | | | | | it's already so darn thorough per test -- it chews through like four circuits before giving up. svn:r8646
* r8932@totoro: nickm | 2006-10-07 20:29:03 -0400Nick Mathewson2006-10-08
| | | | | | | Try to make mingw capable of producing a working tor binary for win98: make all NT-service-related functions get lazy-loaded on demand. I have no idea if this even compiles. svn:r8643
* fetch all the v1 directory stuff way less often. plus, moveRoger Dingledine2006-10-06
| | | | | | | | | | around some housecleaning calls so they still occur often. are some of these redundant or in the wrong order? there are so many of them, maybe they should be put into a separate function that has better documentation. svn:r8607
* r9025@Kushana: nickm | 2006-09-29 18:33:13 -0400Nick Mathewson2006-09-29
| | | | | | | Differentiate more duplicated log entries svn:r8542
* r8750@totoro: nickm | 2006-09-27 20:52:01 -0400Nick Mathewson2006-09-28
| | | | | | | Fix some warnings on mingw; hopefully this should let us build on mingw without warnings. svn:r8509
* Minor fix: add code to eventdns so it can free memory on shutdown. This ↵Nick Mathewson2006-09-25
| | | | | | should help valgrind and dmalloc freak out less. svn:r8503
* Trivial fix to make dmalloc happier: release memory held in static member of ↵Nick Mathewson2006-09-25
| | | | | | escaped(). svn:r8502
* r8878@Kushana: nickm | 2006-09-21 17:15:47 -0400Nick Mathewson2006-09-21
| | | | | | | Trivial whitespace cleanups. svn:r8443
* r8875@Kushana: nickm | 2006-09-21 16:46:28 -0400Nick Mathewson2006-09-21
| | | | | | | Resolve bug 330: detect ISPs that want to hijack failing DNS requests and basically domain-squat the entire internet. svn:r8440
* r8839@Kushana: nickm | 2006-09-17 16:11:59 -0400Nick Mathewson2006-09-17
| | | | | | | Add some client performance XXXXs; try to move some common case tests higher on their decision trees. svn:r8410
* make my bandwidth exercises actually happenRoger Dingledine2006-09-15
| | | | svn:r8400
* r9752@danube: weasel | 2006-09-14 07:06:49 +0200Peter Palfrader2006-09-14
| | | | | | | Fix some dead code that is on occasion useful svn:r8389
* r9736@danube: weasel | 2006-09-14 05:53:06 +0200Peter Palfrader2006-09-14
| | | | | | | | Refactor dirserv_parse_fingerprint_file(fname) into dirserv_load_fingerprint_file(): There is not need to put together the path to the approved-routers file in more than one place. svn:r8386
* - made configure check if we are building for win32Mike Chiussi2006-09-06
| | | | | | | | | | | | | - made configure link to required system dll's if building for win32 - added diffs for libevent 1.1b - forced user to turn off eventdns if win32 is set - cleaned up tor_mmap_file()_win32 (not sure if it's stable) - cleaned up some warnings and typos svn:r8322
* and make the comment better, while i'm at itRoger Dingledine2006-08-28
| | | | svn:r8273
* an even better check -- now servers hang up if they can't writeRoger Dingledine2006-08-28
| | | | | | | for a while, and clients hang up if they can't read for a while. svn:r8272
* fix bug found by Adam J. Richter: directory clients shouldn'tRoger Dingledine2006-08-28
| | | | | | | | | hang up five minutes after they begin. but directory servers should still hang up after 5 minutes of failing to deliver any bytes. svn:r8271
* r8608@Kushana: nickm | 2006-08-27 16:57:47 -0400Nick Mathewson2006-08-28
| | | | | | | Make it possible to change nameserver options while Tor is running. svn:r8255
* i'm guessing nick meant to check the return value of dns_init.Roger Dingledine2006-08-27
| | | | | | | and revise some log severities to match the convention. svn:r8234
* clean up logging conventions in do_list_fingerprint()Roger Dingledine2006-08-24
| | | | svn:r8222
* tor --verify-config now exits with -1(255) or 0 depending on whetherRoger Dingledine2006-08-23
| | | | | | | the config options are bad or good. svn:r8221
* r7411@Kushana: nickm | 2006-08-17 19:00:25 -0400Nick Mathewson2006-08-17
| | | | | | | patch suggested by Karsten Loesing: respond to SIGNAL command before we execute the signal, in case the signal shuts us down. svn:r7072
* fix typo, add explanatory commentRoger Dingledine2006-08-11
| | | | svn:r7026
* r7324@Kushana: nickm | 2006-08-10 23:23:15 -0700Nick Mathewson2006-08-11
| | | | | | | Add more warnings to the list of those we tolerate. Start using GCC attributes more, for better error checking and better code generation. svn:r7020
* r6949@Kushana: nickm | 2006-07-28 10:17:38 -0400Nick Mathewson2006-07-28
| | | | | | | Shave another 8 bytes from connection_t: turn inbuf_reached_eof into a bit, and lower timestamp_lastempty to or_connection_t svn:r6934
* r6922@Kushana: nickm | 2006-07-26 16:32:24 -0400Nick Mathewson2006-07-27
| | | | | | | Rename some fields, compress a bitfield, and document some structs and fields svn:r6919
* r6909@Kushana: nickm | 2006-07-26 13:05:58 -0400Nick Mathewson2006-07-26
| | | | | | | Clean up wide lines from last patch. svn:r6907
* r6908@Kushana: nickm | 2006-07-26 12:38:52 -0400Nick Mathewson2006-07-26
| | | | | | | Refactor connection_t into edge, or, dir, control, and base subtypes. This might save some RAM on busy exit servers, but really matters most in terms of correctness. svn:r6906
* publish a new descriptor after we hup. this is important if ourRoger Dingledine2006-07-23
| | | | | | | | config has changed such that we'll want to start advertising our dirport now, etc. svn:r6819
* think harder about my logicRoger Dingledine2006-07-22
| | | | svn:r6806
* i lied, that won't work at all. maybe this will.Roger Dingledine2006-07-22
| | | | svn:r6805
* more bulletproof reachability testingRoger Dingledine2006-07-22
| | | | svn:r6804