aboutsummaryrefslogtreecommitdiff
path: root/src/or
Commit message (Collapse)AuthorAge
* 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
* build on 64-bit againRoger Dingledine2006-10-23
| | | | svn:r8801
* good thing we didn't have to track this bug down the old-fashioned wayRoger Dingledine2006-10-23
| | | | svn:r8800
* r9347@Kushana: nickm | 2006-10-23 01:24:48 -0400Nick Mathewson2006-10-23
| | | | | | | Implement status event backend logic. svn:r8799
* r9320@Kushana: nickm | 2006-10-22 15:56:27 -0400Nick Mathewson2006-10-23
| | | | | | | fix unittests; add more tests for smartlist stuff; make tests cache generated RSA keys (to speed up unittest run time by 30% and encourage people to run them more). svn:r8796
* r9319@Kushana: nickm | 2006-10-22 15:25:18 -0400Nick Mathewson2006-10-23
| | | | | | | oops; include or.h changes for last patch. svn:r8795
* r9318@Kushana: nickm | 2006-10-22 15:22:57 -0400Nick Mathewson2006-10-23
| | | | | | | Let directory authorities set the BadExit flag if they like. Also, refactor directory authority code so we can believe multiple things about a single router, and do fewer linear searches. svn:r8794
* fix a minor memory leak every time we rebuild the router store,Roger Dingledine2006-10-22
| | | | | | | | | | fix a rare memory leak if something goes wrong while rebuilding it, and clean up some code. nick, please confirm. reported by "fookoowa" in flyspray 346 (yay!) svn:r8789
* fix a string, pointed out by matt edman.Roger Dingledine2006-10-21
| | | | | | | also fix a bug next to it that i noticed. svn:r8784
* stop writing arbitrary memory out on the controller port.Roger Dingledine2006-10-20
| | | | | | | | it's an ugly patch, but at least this way we can see that it's fixed. maybe clean up the whole "@" syntax later on. svn:r8783
* r9313@Kushana: nickm | 2006-10-20 17:04:11 -0400Nick Mathewson2006-10-20
| | | | | | | Oops. Conform to spec. svn:r8782
* r9312@Kushana: nickm | 2006-10-20 14:45:22 -0400Nick Mathewson2006-10-20
| | | | | | | Add an event type to tell the controller when our opinion of a router status has changed. I might have missed some cases here. svn:r8781
* checkpoint some changes as i read diffsRoger Dingledine2006-10-20
| | | | svn:r8780
* 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
* r9306@Kushana: nickm | 2006-10-20 13:27:43 -0400Nick Mathewson2006-10-20
| | | | | | | Enable reasons for stream events in all cases but CLOSED in about_to_close_connection. That one will take a little longer. svn:r8778
* r9303@Kushana: nickm | 2006-10-20 12:07:34 -0400Nick Mathewson2006-10-20
| | | | | | | Start implementing reason extension for stream events to match the one one used by circuit events. (Not a complete implementation yet; actual reasons are not passed to control.c) svn:r8777
* r9304@dhcp-18-188-67-85: nickm | 2006-10-20 12:22:46 -0400Nick Mathewson2006-10-20
| | | | | | | Change HT_INIT from a special-case to a macro-calling-a-function like the rest of ht.h. This might prevent errors if somebody did, I dunno, "HT_INIT(tp, hashtable++)". Based on a patch from Watson Ladd. svn:r8776
* r9298@dhcp-18-188-67-85: nickm | 2006-10-20 11:25:07 -0400Nick Mathewson2006-10-20
| | | | | | | Weasel correctly notes that we should not discard the return value from connection_exit_begin_con. Right now, the return value is always discardable, so this does not actually cause a bug, but it might later. So fix it. svn:r8774
* r9290@31-35-219: nickm | 2006-10-20 10:32:33 -0400Nick Mathewson2006-10-20
| | | | | | | Add a GETINFO target so controllers can ask Tor for the current state of a router. (Results given in networkstatus format.) svn:r8772
* r9289@31-35-219: nickm | 2006-10-20 09:43:22 -0400Nick Mathewson2006-10-20
| | | | | | | Fix longstanding bug in connection_exit_begin_conn(): Since connection_edge_end() exits when the connection is unattached, we were never sending RELAY_END cells back for failed RELAY_BEGIN attempts. Fix this. This might make clients that were otherwise timing out either fail faster or retry faster, which is good news for us. svn:r8770
* r9287@Kushana: nickm | 2006-10-19 19:28:31 -0400Nick Mathewson2006-10-19
| | | | | | | Weasel points out that a routerdesc requested by digest can never change. Weasel is right. svn:r8766
* r9277@Kushana: nickm | 2006-10-19 19:03:05 -0400Nick Mathewson2006-10-19
| | | | | | | Add pragma:no-cache and expires headers so that directory lookups can work better in the presence of caching HTTP proxies. (I would have used Cache-Control, but that is an HTTP/1.1 thing.) All timeouts are currently wild-assed guesses. svn:r8765
* r9276@Kushana: nickm | 2006-10-19 17:08:15 -0400Nick Mathewson2006-10-19
| | | | | | | Add some more unit tests for policies. svn:r8764
* r9275@Kushana: nickm | 2006-10-19 16:45:19 -0400Nick Mathewson2006-10-19
| | | | | | | Split smartlist tests into their own function, and add a couple more. Re-enable strmap iteration tests. Remove tests for code that doesnt exist any more (parse_nickname_list, identity ciphers). svn:r8763
* r9274@Kushana: nickm | 2006-10-19 16:16:58 -0400Nick Mathewson2006-10-19
| | | | | | | Add unit tests for tor_mmap_file(); make tor_mmap_t.size always be the size of the file (not the size of the mapping); add an extra argument to read_file_to_str() so it can return the size of the result string. svn:r8762
* r9273@Kushana: nickm | 2006-10-19 15:43:39 -0400Nick Mathewson2006-10-19
| | | | | | | Never discard a descriptor for being too old until either it is recommended by no authorities, or until we download a better (more recent and recommended) one for the same router. This will eventually make it possible for servers to publish less often. svn:r8761
* r9272@Kushana: nickm | 2006-10-19 12:52:37 -0400Nick Mathewson2006-10-19
| | | | | | | Fix an XXX in handling destroy cells: when we get a destroy cell with reason FOO, do not tell the controller REASON=FOO. Instead, say REASON=DESTROYED REMOTE_REASON=FOO. Suggested by a conversation with Mike Perry. svn:r8760
* r9091@totoro: nickm | 2006-10-19 11:45:28 -0400Nick Mathewson2006-10-19
| | | | | | | Change to BadExit logic: Let authorities set an "I list bad exits" flag. Consider an exit bad if it is listed as bad by more than half of *those* authorities. This gives us a better migration path. svn:r8756
* r9080@totoro: nickm | 2006-10-19 11:00:16 -0400Nick Mathewson2006-10-19
| | | | | | | Oops, forgot the patch: Use corect macro to detect cygwin builds (patch from Pei Hanru) svn:r8754
* r9077@totoro: nickm | 2006-10-18 11:41:16 -0400Nick Mathewson2006-10-18
| | | | | | | Another patch from Mike Perry; sprintfing a NULL pointer. (with comment). svn:r8747
* r9062@totoro: nickm | 2006-10-17 11:19:43 -0400Nick Mathewson2006-10-17
| | | | | | | Fix -Wlots with command.c (a uchar is never -1). Note also that one of our ifs is very stupid. svn:r8741
* r9061@totoro: nickm | 2006-10-17 11:18:28 -0400Nick Mathewson2006-10-17
| | | | | | | Oops. Libevent 1.2 exists. Add it to our enum, even though we dont care yet. svn:r8740
* r9060@totoro: nickm | 2006-10-17 11:12:48 -0400Nick Mathewson2006-10-17
| | | | | | | Apply patch from Mike Perry: add more reasons for circuit destroys. (Slightly tweaked to avoid allocating a number for an "internal" reason.) svn:r8739
* clean up and downgrade some log messagesRoger Dingledine2006-10-15
| | | | svn:r8727
* 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
* r9021@totoro: nickm | 2006-10-13 01:42:45 -0400Nick Mathewson2006-10-13
| | | | | | | Fix for last patch. "", though empty, is true. This ain't Python, Nick. svn:r8701
* r9019@totoro: nickm | 2006-10-13 01:32:34 -0400Nick Mathewson2006-10-13
| | | | | | | Fix extraneous space in CIRC events when path is empty. svn:r8700
* r9017@totoro: nickm | 2006-10-13 01:27:33 -0400Nick Mathewson2006-10-13
| | | | | | | Second patch to work on circuit close reasons from Mike Perry. Disabled partially; see comment. Whitespace cleaned up. svn:r8699
* r9004@totoro: nickm | 2006-10-11 18:05:24 -0400Nick Mathewson2006-10-11
| | | | | | | | Add client support for a 'BadExit' flag, so authorities can say "Server X is a poor choise for your nytimes.com connections, as it seems to direct them to HoorayForMao.com or (more likely) WouldYouLikeToBuyTheseFineEncyclopedias.com" svn:r8690
* r8985@totoro: nickm | 2006-10-10 19:39:57 -0400Nick Mathewson2006-10-10
| | | | | | | Fix a signed/unsigned compare in eventdns.c svn:r8685
* - Stop triggering asserts if the controller tries to extend hiddenRoger Dingledine2006-10-09
| | | | | | | | service circuits. (also found by mwenge) svn:r8682
* When reporting verbose nicknames in entry_guards_getinfo(), avoidRoger Dingledine2006-10-09
| | | | | | | printing a duplicate "$" in the keys we send. (Reported by mwenge) svn:r8681
* 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
* r8983@totoro: nickm | 2006-10-09 14:19:18 -0400Nick Mathewson2006-10-09
| | | | | | | Add missing ! to code to generate short/verbose nicknames for orconn events. svn:r8674
* r8973@totoro: nickm | 2006-10-09 11:45:47 -0400Nick Mathewson2006-10-09
| | | | | | | | | | | Touch up last patch (to add REASON to CIRC events): make some reasons more sensible, send reasons only to controllers that have enabled extended events, and clean up whitespace. svn:r8672
* r8972@totoro: nickm | 2006-10-09 10:36:22 -0400Nick Mathewson2006-10-09
| | | | | | | Patch from Mike Perry: add a REASON field to closed and failed circ events. svn:r8671
* r8971@totoro: nickm | 2006-10-09 10:16:23 -0400Nick Mathewson2006-10-09
| | | | | | | Move definition of ssize_t to torint.h svn:r8670
* 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