summaryrefslogtreecommitdiff
path: root/src/or
AgeCommit message (Collapse)Author
2013-06-13Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson
2013-06-13Rename networkstatus_dl_interval() -> networkstatus_dl_check_interval()Nick Mathewson
2013-06-13Merge remote-tracking branch 'linus/bug8532'Nick Mathewson
2013-06-13If we write the annotation but not the microdescriptor, rewind.Nick Mathewson
This fixes bug 9047 (and some parts of 9031, 8922, 8883 that weren't fixed in 8822). Bugfix on 0.2.2.6-alpha.
2013-06-13Merge remote-tracking branch 'public/bug7912_squashed'Nick Mathewson
2013-06-13Fix compile warnings wrt printf formating of int64_tNick Mathewson
2013-06-13Add destroy balance tracking and logging to circuitmuxAndrea Shepard
2013-06-13Implementation of a fix for bug 7912Nick Mathewson
I added the code to pass a destroy cell to a queueing function rather than writing it immediately, and the code to remember that we shouldn't reuse the circuit id until the destroy is actually sent, and the code to release the circuit id once the destroy has been sent... and then I finished by hooking destroy_cell_queue into the rest of Tor.
2013-06-13Code to track on a circuit whether it has a "pending" delete cellNick Mathewson
This will be used in a fix for bug7912.
2013-06-13Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson
2013-06-13Merge remote-tracking branch 'public/bug8822' into maint-0.2.4Nick Mathewson
2013-06-12Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson
2013-06-12Merge remote-tracking branch 'andrea/bug8639_v3' into maint-0.2.4Nick Mathewson
2013-06-12Make all consumers of microdesc_t.body tolerate NULLNick Mathewson
This is another fix to try to mitigate recurrences of 8031/8822.
2013-06-12Unmap the microdescriptor cache before replacing it.Nick Mathewson
This is a reprise of the fix in bdff7e3299d78; 6905c1f6 reintroduced that bug. Briefly: windows doesn't seem to like deleting a mapped file. I tried adding the PROT_SHARED_DELETE flag to the createfile all, but that didn't actually fix this issue. Fortunately, the unit test I added in 4f4fc63fea0589a4fa03f3859dc27860cdde75af should prevent us from making this particular screw-up again. This patch also tries to limit the crash potential of a failure to write by a little bit, although it could do a better job of retaining microdescriptor bodies. Fix for bug 8822, bugfix on 0.2.4.12-alpha.
2013-06-10Hide consensus download interval, depending on TestingTorNetwork, in a macro.Linus Nordberg
2013-06-10Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson
2013-06-10Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4Nick Mathewson
2013-06-10Fix (Open?)BSD fast-connect bug with optimistic data.Nick Mathewson
There's an assertion failure that can occur if a connection has optimistic data waiting, and then the connect() call returns 0 on the first attempt (rather than -1 and EINPROGRESS). That latter behavior from connect() appears to be an (Open?)BSDism when dealing with remote addresses in some cases. (At least, I've only seen it reported with the BSDs under libevent, even when the address was 127.0.0.1. And we've only seen this problem in Tor with OpenBSD.) Fixes bug 9017; bugfix on 0.2.3.1-alpha, which first introduced optimistic data. (Although you could also argue that the commented-out connection_start_writing in 155c9b80 back in 2002 is the real source of the issue.)
2013-06-08Add support for offsetting the voting interval in order to bootstrap faster.Linus Nordberg
A new option TestingV3AuthVotingStartOffset is added which offsets the starting time of the voting interval. This is possible only when TestingTorNetwork is set. This patch makes run_scheduled_events() check for new consensus downloads every second when TestingTorNetwork, instead of every minute. This should be fine, see #8532 for reasoning. This patch also brings MIN_VOTE_SECONDS and MIN_DIST_SECONDS down from 20 to 2 seconds, unconditionally. This makes sanity checking of misconfiguration slightly less sane. Addresses #8532.
2013-05-31When launching a resolve request on behalf of an AF_UNIX control, omit the ↵Andrea Shepard
address field of the new entry connection. Fixes bug 8639.
2013-05-28Start correctly when not in testing mode.Nick Mathewson
You can't use != to compare arbitary members of or_options_t. (Also, generate a better error message to say which Testing* option was set.) Fix for bug 8992. Bugfix on b0d4ca49. Bug not in any released Tor.
2013-05-28Merge remote-tracking branch 'karsten/task-6752-3'Nick Mathewson
2013-05-25Try harder to document default_options correctly.Karsten Loesing
2013-05-24Reformat 4282 fixes a littleNick Mathewson
2013-05-24Fix a logic error in 4282 fixesNick Mathewson
check_or_create_data_subdir has succeeded when it returns 0, not when it returns negative.
2013-05-24Extract duplicate code in geoip and rephist.Peter Retzlaff
Create new methods check_or_create_data_subdir() and write_to_data_subdir() in config.c and use them throughout rephist.c and geoip.c. This should solve ticket #4282.
2013-05-24Tweak fix for #8789 a bit; avoid double-close and add changes fileNick Mathewson
2013-05-24Close socket at err target.Arlo Breault
In connection_listener_new(). See #8789.
2013-05-24Tweak #6752 patch based on comments by nickm.Karsten Loesing
2013-05-21Restore 8093 log messages to WARN severity, but rate limitNick Mathewson
See #8093 for discussion
2013-05-21Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson
2013-05-21Downgrade the unexpected sendme cell warnings for 0.2.4Nick Mathewson
See discussion on #8093
2013-05-20Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson
2013-05-20Copy-paste description of PathBias params from man page to or.h commentAndrea Shepard
2013-05-17Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson
2013-05-17Fix bug 8846: better log message on IP version confusionNick Mathewson
2013-05-16Lower dir fetch retry schedules in testing networks.Karsten Loesing
Also lower maximum interval without directory requests, and raise maximum download tries. Implements #6752.
2013-05-15Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson
2013-05-15Fix socks5 handshake for username/password authRoger Dingledine
The fix for bug 8117 exposed this bug, and it turns out real-world applications like Pidgin do care. Bugfix on 0.2.3.2-alpha; fixes bug 8879.
2013-05-14Check the return value of memchr().Arlo Breault
For quality-of-implementation in munge_extrainfo_into_routerinfo(). See #8791
2013-05-10Merge branch 'maint-0.2.4'Andrea Shepard
2013-05-10Merge bug5595-v2-squashed into maint-0.2.4Andrea Shepard
2013-05-09Rephrase comment in trusted_dirs_load_certs_from_string() to reflect 5595 fixAndrea Shepard
2013-05-09Make warning in authority_cert_dl_failed() LD_BUG per NickM code reviewAndrea Shepard
2013-05-09Use tor_asprintf() and clean up string handling in ↵Andrea Shepard
authority_certs_fetch_missing()
2013-05-09Clean up ugly constants in connection_dir_download_cert_failed(), and fix a ↵Andrea Shepard
broken one
2013-05-09Avoid duplicate downloads by (fp,sk) and by fp for authority certs when ↵Andrea Shepard
bootstrapping
2013-05-09When downloading certificates, distinguish requesting by identity digest ↵Andrea Shepard
from requesting by ID digest, signing key pair; fixes bug 5595
2013-05-09Implement fp_pair_map_tAndrea Shepard