| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
| |
Patch from Tup: treat RESOLVED_TYPE_ERROR_TRANSIENT as a SERVERFAILED, and RESOLVED_TYPE_ERROR as NOTEXIST. Generate transient/nontransient errors more sensibly. Set flags better on DNS replies.
svn:r10427
|
|
|
|
|
|
|
| |
Fix handling of resolves with very long or otherwise malformed addresses, and comment dns_resolve better, and stop making what should be a BUG warning into an assert(0). This fixes bug 427, which was introduced around 9900/9931/9932. Not a backport candidate: 0.1.2.x never had this bug.
svn:r10399
|
|
|
|
| |
svn:r10335
|
|
|
|
|
|
|
| |
resolve request. this should help that.
svn:r10334
|
|
|
|
|
|
|
| |
Review XXXX comments without a version; upgrade some to XXXX020.
svn:r10315
|
|
|
|
|
|
|
| |
Bugfix and possible backport candidate: use the same logic as in read_all when reading resolv.conf. Maybe this fixes bug 433.
svn:r10237
|
|
|
|
|
|
|
| |
Address points in r10227.
svn:r10229
|
|
|
|
|
|
|
| |
items we should probably look into.
svn:r10227
|
|
|
|
| |
svn:r10182
|
|
|
|
|
|
|
| |
Simplify dns_resolve: use a helper function so that we handle the error/answer/pending cases uniformly in dns_resolve, and everything else in dns_resolve_impl.
svn:r9932
|
|
|
|
|
|
|
| |
Try to fix bug 410: move responsibility for attaching/detaching initial streams from circuits into dns_resolve. Needs refactoring a little.
svn:r9931
|
|
|
|
|
|
|
| |
Eliminate more redundant circuit_t arguments when edge_connection_t is already supplied and the circuit is already attached.
svn:r9900
|
|
|
|
|
|
|
| |
Refactor a bunch of functions that take edge_connection_t not to also take a crypt_path_t; the cpath is implicit.
svn:r9899
|
|
|
|
|
|
|
| |
Remove dnsworkers and related code. there goes another 550 lines of code.
svn:r9736
|
|
|
|
|
|
|
| |
Make all LD_BUG log messsages get prefixed with "Bug: ". Remove manually-generated "Bug: "s from log-messages. (Apparently, we remembered to add them about 40% of the time.)
svn:r9733
|
|
|
|
|
|
|
| |
Two XXX012 comments turned out to be bogus; remove them and document why.
svn:r9625
|
|
|
|
|
|
|
| |
Resolve 56 DOCDOC comments.
svn:r9594
|
|
|
|
|
|
|
| |
Fix a longstanding dnsworker-related bug: when we decide to kill a DNS worker for having been in use too long, and we independently decide to close one of the exit connections waiting for that DNS worker (perhaps because we got an END relay cell), it was possible for us to try to double-free the connection. We were smart enough to detect this and assert, but not smart enough to fix this bug before now. This should resolve bug 390. Backport candidate.
svn:r9581
|
|
|
|
|
|
|
| |
Update copyright dates.
svn:r9570
|
|
|
|
|
|
|
| |
Remove XXXX012 for apparently resolved bug
svn:r9548
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Resolve some XXXX012 items:
- Remove PathlenCoinWeight: if we want it again, we can add it
back in.
- Ditto with RelayBandwidth*.
- Decide to leave in the "hey, you didn't set end_reason!" BUG log message,
but stop telling people to bug me personally.
- Postpone strengthening assert_connection_ok(): it's important, but
it's also a good way to introduce weird bugs.
- Move some expensive consistency checking from dns_free_all() into
assert_cache_ok().
svn:r9533
|
|
|
|
|
|
|
| |
Add missing return statement.
svn:r9478
|
|
|
|
|
|
|
| |
Removing the last DOCDOC comment hurt so much that I had to use Doxygen to identify undocumented macros and comments, and add 150 more DOCDOCs to point out where they were. Oops. Hey, kids! Fixing some of these could be your first Tor patch!
svn:r9477
|
|
|
|
|
|
|
| |
Fail when we are unable to parse the nameserver configuration.
svn:r9475
|
|
|
|
|
|
|
| |
Call stat() slightly less often; use fstat() when possible.
svn:r9472
|
|
|
|
|
|
|
| |
Re-enable server side PTR-record cacheing.
svn:r9468
|
|
|
|
|
|
|
| |
Fix a bug in our assertions related to removing recently-completed DNS lookup attempts on exit. It is okay to find a cache entry with the same name as a DONE entry, so long it is not the same struct as the DONE entry.
svn:r9467
|
|
|
|
|
|
|
| |
Fix/update some XXX012 points.
svn:r9456
|
|
|
|
|
|
|
| |
Add documentation to dns.c (mainly to test new buildbot version)
svn:r9393
|
|
|
|
| |
svn:r9387
|
|
|
|
|
|
|
| |
Free CACHE_STATE_DONE cached_router_t items on dns_free_all().
svn:r9386
|
|
|
|
| |
svn:r9365
|
|
|
|
|
|
|
| |
Be even more clever about severity of messages from eventdns: NOTICE when the first nameserver comes up; INFO on subsequent ones.
svn:r9364
|
|
|
|
|
|
|
| |
Answer questions from r9348.
svn:r9358
|
|
|
|
| |
svn:r9348
|
|
|
|
|
|
|
| |
Check addresses for rfc953-saneness at exit too, and give a PROTOCOL_WARN when they fail. Also provide a mechanism to override this, so blossom can have its @@##$$^.whatever.exit hostnames if it wants.
svn:r9336
|
|
|
|
|
|
|
| |
Fix a crash bug in the presence of DNS hijacking.
svn:r9333
|
|
|
|
|
|
|
| |
time to put out the bugfix release.
svn:r9309
|
|
|
|
|
|
|
| |
Implement DNS-related status events.
svn:r9285
|
|
|
|
|
|
|
| |
Re-enable warning when we resolve an already resolved address. We only warn here now if the address is not a testing address. Also, refactor out a function to check whether an address is used for testing.
svn:r9280
|
|
|
|
| |
svn:r9270
|
|
|
|
|
|
|
| |
If we only have a single nameserver, raise the threshold to decide that the nameserver is dead. (Another fumbling attempt to do something about bug 326.)
svn:r9203
|
|
|
|
|
|
|
| |
Partial solution to 326: downgrade single-nameserver failures to INFO.
svn:r9201
|
|
|
|
|
|
|
| |
Refactor and unify my-ip-addr-changed logic. Make change in IP address or in nameservers reset and relaunch DNS hijacking tests.
svn:r9200
|
|
|
|
|
|
|
| |
Fix bug 364: check for whether popular hostnames (curently google, yahoo, mit, and slashdot) are getting wildcarded. If they are, we are probably behind a DNS server that is useless: change our exit policy to reject *:*.
svn:r9199
|
|
|
|
|
|
|
| |
Resolve bug 363: do not fall back to 127.0.0.1 when no nameservers are configured. Instead, have the admin fix resolv.conf or configure a nameserver.
svn:r9157
|
|
|
|
|
|
|
| |
also fix a bug next to it that i noticed.
svn:r8784
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
svn:r8606
|
|
|
|
| |
svn:r8599
|