Commit Graph

6506 Commits

Author SHA1 Message Date
Nick Mathewson
b9082682fd r6982@Kushana: nickm | 2006-07-31 13:47:19 -0400
documentation and naming tweaks in dns.c


svn:r6961
2006-07-31 18:01:49 +00:00
Nick Mathewson
58c0ac77be r6981@Kushana: nickm | 2006-07-31 13:23:26 -0400
More asserts for cache correctness.


svn:r6960
2006-07-31 18:01:45 +00:00
Nick Mathewson
ea0f5ec8ad r6980@Kushana: nickm | 2006-07-31 13:18:22 -0400
Add a utility function to verify that a string has been through strlower.


svn:r6959
2006-07-31 18:01:37 +00:00
Nick Mathewson
d934607069 r6979@Kushana: nickm | 2006-07-31 13:16:58 -0400
Add assert_ok functions for strmap and digestmap; use them in unit test code.


svn:r6958
2006-07-31 18:01:27 +00:00
Nick Mathewson
3843b1b3d0 r6978@Kushana: nickm | 2006-07-31 13:16:14 -0400
Add isupper and islower wrappers to compat.h


svn:r6957
2006-07-31 18:01:22 +00:00
Nick Mathewson
fd0bafb0de r6977@Kushana: nickm | 2006-07-31 13:01:28 -0400
Solve timing-out pending connections. Add pending resolves to expiry queue; when we find an answer, change the pending resolve to "done" and stick the actual answer in the expiry queue as a new entry.  This uses a little more memory, but makes the code simpler than other solutions.


svn:r6956
2006-07-31 18:01:18 +00:00
Nick Mathewson
ccf9c1345e svn:r6955 2006-07-31 18:00:47 +00:00
Nick Mathewson
46574319a2 r6959@Kushana: nickm | 2006-07-29 22:33:18 -0400
start restructuring dns to use priority queues for expiring entries.


svn:r6954
2006-07-31 18:00:18 +00:00
Nick Mathewson
2fe537c57a r6958@Kushana: nickm | 2006-07-29 18:54:15 -0400
Looks like we might need a priority queue.


svn:r6953
2006-07-31 17:59:37 +00:00
Nick Mathewson
8ba913c660 r6952@Kushana: nickm | 2006-07-28 11:09:37 -0400
Add completely untested find-my-nameservers code for win32.


svn:r6952
2006-07-31 17:59:11 +00:00
Roger Dingledine
8112829a9b forward-port the 0.1.1.23 changelog.
svn:r6946
2006-07-30 05:36:17 +00:00
Roger Dingledine
798b580695 fix assert found by DreadWingKnight: now that rendezvous streams
are attached to p_streams, the p_streams list can consist of both AP
and EXIT conns.


svn:r6945
2006-07-30 04:54:13 +00:00
Roger Dingledine
bf76d3a189 forward-port the website hack. note that with svn, our build
system seems to build in-place, so the website/ and img/ directories
actually get created in my sandbox. poo.


svn:r6944
2006-07-30 04:45:59 +00:00
Roger Dingledine
2bcb081cb1 defense in depth
svn:r6939
2006-07-30 04:32:58 +00:00
Andrew Lewman
7498d31b09 Remove the last vestiges of launchd plist.
svn:r6938
2006-07-30 03:53:18 +00:00
Roger Dingledine
c3b79ebf13 a bit more debugging for phobos
svn:r6937
2006-07-30 03:34:44 +00:00
Andrew Lewman
cfe0da8a67 Remove the launchd plist file.
svn:r6936
2006-07-30 03:32:54 +00:00
Nick Mathewson
84c2a6c16b r6950@Kushana: nickm | 2006-07-28 10:32:08 -0400
Document split fields better. Now, I think we can take a break from type splitting for a bit.


svn:r6935
2006-07-28 15:11:28 +00:00
Nick Mathewson
85f381153b r6949@Kushana: nickm | 2006-07-28 10:17:38 -0400
Shave another 8 bytes from connection_t: turn inbuf_reached_eof into a bit, and lower timestamp_lastempty to or_connection_t


svn:r6934
2006-07-28 15:11:20 +00:00
Nick Mathewson
6dc13cdbeb r6948@Kushana: nickm | 2006-07-28 10:10:35 -0400
Identify some likely target fields for lowering; lower global_identifier (since we only use it for AP streams and origin circs).


svn:r6933
2006-07-28 15:11:11 +00:00
Andrew Lewman
498fe87434 So long, farewell, auf Wiedersehen, adieu, launchd
svn:r6932
2006-07-28 13:52:36 +00:00
Andrew Lewman
e469438d20 Forget leopard.
svn:r6929
2006-07-27 20:24:53 +00:00
Andrew Lewman
79144b8eb0 fi, fy fo fum, if-then- doesn't work without one
svn:r6928
2006-07-27 20:03:09 +00:00
Roger Dingledine
a5e5074807 resolve typo
svn:r6927
2006-07-27 19:35:11 +00:00
Nick Mathewson
c2f28615ed More asserts in dns.c
svn:r6926
2006-07-27 18:35:56 +00:00
Nick Mathewson
8786b4b88e Fix a bug in HT_REMOVE.
svn:r6925
2006-07-27 18:35:25 +00:00
Nick Mathewson
45c3a4365f Get better numbers out of HT_REP_OK
svn:r6924
2006-07-27 17:37:37 +00:00
Andrew Lewman
3770685498 Far better test and handling of existing torrc
svn:r6923
2006-07-27 17:19:32 +00:00
Nick Mathewson
dc2b7e9af0 Add more asserts in dns_found_answer. This may confirm my theory that dns_purge_resolve is the culprit.
svn:r6922
2006-07-27 17:16:10 +00:00
Nick Mathewson
5227395aba r6922@Kushana: nickm | 2006-07-26 16:32:24 -0400
Rename some fields, compress a bitfield, and document some structs and fields


svn:r6919
2006-07-27 05:03:57 +00:00
Nick Mathewson
dd779d99ea Fix comments that implied that only dir connections had a purpose field, and the code that believed in those comments.
svn:r6918
2006-07-27 04:10:51 +00:00
Andrew Lewman
f77b2a0407 Oops, forgot the all important 'r'
svn:r6916
2006-07-27 03:17:50 +00:00
Andrew Lewman
1ee13cff67 OSX gets confused when you have two ways to start the same program.
svn:r6915
2006-07-27 03:10:23 +00:00
Andrew Lewman
8ae177dad6 The whole process works from preflight to postflight creating a clean
Tor install with proper config file edits


svn:r6914
2006-07-27 03:02:47 +00:00
Andrew Lewman
cd45eb6175 Backup only what is needed, write the file we created to a temp file for
TorPostFlight to restore the data and remove the temp files


svn:r6913
2006-07-27 01:20:02 +00:00
Andrew Lewman
a89bc08838 Be better at finding the Tor install path, backup all of Tor just in
case, then blow Tor away


svn:r6912
2006-07-27 00:19:36 +00:00
Andrew Lewman
99fc0aba61 OSX pre-install script to clean up Tor and force a fresh install, but
save the server keys if they exist.


svn:r6911
2006-07-26 23:52:59 +00:00
Andrew Lewman
a815225683 Set Soft & Hard resource limits to appease launchd.
svn:r6910
2006-07-26 21:50:27 +00:00
Nick Mathewson
dd9a563a9e r6920@Kushana: nickm | 2006-07-26 15:39:40 -0400
Mark some TODO items done


svn:r6909
2006-07-26 19:39:47 +00:00
Nick Mathewson
0bc741ba7f r6918@Kushana: nickm | 2006-07-26 15:22:28 -0400
Fix compilation for eventdns dns.c with split structs.


svn:r6908
2006-07-26 19:29:30 +00:00
Nick Mathewson
ec82db6995 r6909@Kushana: nickm | 2006-07-26 13:05:58 -0400
Clean up wide lines from last patch.


svn:r6907
2006-07-26 19:07:37 +00:00
Nick Mathewson
4ff4577beb r6908@Kushana: nickm | 2006-07-26 12:38:52 -0400
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
2006-07-26 19:07:26 +00:00
Nick Mathewson
18771e851f r6907@Kushana: nickm | 2006-07-25 19:03:43 -0400
Realign circuit structs to avoid wasted space.


svn:r6905
2006-07-26 19:07:23 +00:00
Nick Mathewson
e61d28dfb8 r6903@Kushana: nickm | 2006-07-25 18:22:48 -0400
No circuit can be both an intro point and a rend point, so we can merge both the cookie and the pk digest into one "rend_token" field for or circuits. This saves another 20 bytes per or circuit.


svn:r6904
2006-07-26 19:05:41 +00:00
Nick Mathewson
a88ec48a39 r6902@Kushana: nickm | 2006-07-25 17:30:27 -0400
Move rend_query to origin_circuit_t where it belongs; save another 17 bytes per OR circuit.


svn:r6903
2006-07-26 19:05:34 +00:00
Nick Mathewson
f2dc012acc Clarify a TODO, and test tweaked commit-email.pl script.
svn:r6902
2006-07-25 22:51:51 +00:00
Nick Mathewson
4fe3c607ad Apply checkSpace.pl to checkSpace.pl.
svn:r6901
2006-07-25 22:33:57 +00:00
Nick Mathewson
fc9ed724ed Allow wide lines if they have svn id tags in them. (This matters for svk: those tags can be *big*.)
svn:r6900
2006-07-25 22:30:50 +00:00
Nick Mathewson
d5a2d51c40 Add libor.a and libor-crypto.a to svn:ignore
svn:r6899
2006-07-25 22:26:42 +00:00
Nick Mathewson
96bcbb1e1c Remove code to special-case "-cvs" ending, since it has not actually mattered since 0.0.9. Perhaps we can special-case even more...
svn:r6898
2006-07-25 04:34:14 +00:00