aboutsummaryrefslogtreecommitdiff
path: root/src/or/dns.c
Commit message (Expand)AuthorAge
* Cosmetic patch for arma's fix for The Bug: Don't set the state to•••RESOLVEFAILED if the resolve didn't fail; set it to CONNECTING instead. svn:r1590 Nick Mathewson2004-04-11
* continue beating at pieces of The Bug•••svn:r1588 Roger Dingledine2004-04-09
* if dns resolve is valid, but our exit policy rejects it or•••the connect attempt fails immediately, we were trying to double-remove it from the dns pending list. i think this might have been The Bug. (thanks weasel!) svn:r1587 Roger Dingledine2004-04-09
* get more serious about hunting The Bug•••(it has been haunting us since the days of 0.0.2preX) svn:r1576 Roger Dingledine2004-04-09
* Delete trailing whitespace and expand tabs; remove unused aes decrypt code•••svn:r1522 Nick Mathewson2004-04-07
* clean up a few more bugs•••svn:r1365 Roger Dingledine2004-03-29
* make normal exit nodes less likely to crash from the conn-munging bug•••but leave dirservers just as likely to crash svn:r1363 Roger Dingledine2004-03-29
* make dns resolves a lot faster•••(but only enable this once we've found the bug) svn:r1358 Roger Dingledine2004-03-28
* there is yet another dns-pending-conn-clobbering bug•••somewhere svn:r1354 Roger Dingledine2004-03-28
* deal with hardware word alignment•••this was causing the seg faults on sparc processors i wonder if i got them all. svn:r1314 Roger Dingledine2004-03-20
* don't close all the fd's when you spawn a thread, only when you fork•••svn:r1267 Roger Dingledine2004-03-12
* bugfix: we were caching transient dns failures•••svn:r1266 Roger Dingledine2004-03-12
* Make all the other read/writes into recv/sends, except when they shouldn't be.•••svn:r1260 Nick Mathewson2004-03-11
* stop asserting that computers always go forward in time•••it's simply not true svn:r1236 Roger Dingledine2004-03-06
* make workers explain their death better when tor dies•••and make them say it at log level info rather than err svn:r1232 Roger Dingledine2004-03-04
* bugfix: don't pass complex things to the connection_mark_for_close macro•••svn:r1231 Roger Dingledine2004-03-04
* Clean up dns->connection_mark_for_close->dns_remove path•••svn:r1230 Nick Mathewson2004-03-04
* fix the function comment•••svn:r1169 Roger Dingledine2004-02-28
* Split dns_cancel_pending_resolve into dns_cancel_pending_resolve (kill a•••resolve in response to a DNS worker dying) and connection_dns_remove (remove a pending connection from the resolve structure.) svn:r1168 Nick Mathewson2004-02-28
* add a log_warn to notify us of yet another potential dns.c bug•••svn:r1167 Roger Dingledine2004-02-28
* Make dns_cancel_pending_resolve less agressive.•••svn:r1166 Nick Mathewson2004-02-28
* Fix bug on dns_found_answer from mark_to_close stuff.•••svn:r1165 Nick Mathewson2004-02-28
* remove assert from dns.c that's no longer true:•••typically the resolve will be pending, but it could be failed if it just failed and we're working through the 'pending' list, or it could be valid if some other dnsworker raced us to fill in the entry. svn:r1164 Roger Dingledine2004-02-28
* Push responsibility for connection marking down as far as possible; have only...•••svn:r1149 Nick Mathewson2004-02-28
* Refactor mark_for_close, connection_edge_end and friends. Now, everybody•••who wants to shut down a connection calls connection_mark_for_close instead of setting marked_for_close to 1. This automatically removes the connection from the DNS cache if needed, sends a RELAY END cell if appropriate, and can be changed to do whatever else is needed. Still to do: - The same for circuits, maybe. - Add some kind of hold_connection_open_until_flushed flag, maybe. - Change stuff that closes connections with return -1 to use mark_for_close, maybe. svn:r1145 Nick Mathewson2004-02-27
* Basic RAM poisoning and magic-checking to notice connection and circuit•••corruption faster; also, check for corruption in dns.c so we can fail fast for the bug that's nailing Lucky and moria3. svn:r1123 Nick Mathewson2004-02-25
* remove dead code•••svn:r1121 Roger Dingledine2004-02-25
* fix some bugs in assert_connection_ok•••svn:r1118 Roger Dingledine2004-02-24
* start hunting the lucky-bug•••svn:r1116 Roger Dingledine2004-02-22
* split the token bucket into 'rate' and 'burst' params•••we're not entirely migrated to burst yet, for backward compatibility note some win32 probable-bugs clean up routerlist.c svn:r982 Roger Dingledine2004-01-10
* Fix the dns bug: children weren't dying•••We were telling a child to die by closing the parent's file descriptor to him. But newer children were inheriting the open file descriptor from the parent, and since they weren't closing them, the socket never closed, so the child never read eof, so he never knew to exit. As a side effect to this bug, we were probably failing to properly close connections to remote hosts, ORs, and OPs, after a dns child was born. I'm surprised Tor worked at all. svn:r974 Roger Dingledine2004-01-06
* betcha didn't know strncpy could leave an unterminated string•••svn:r949 Roger Dingledine2003-12-17
* Make compile warning-free on cygwin•••svn:r936 Nick Mathewson2003-12-15
* start tracking the 'It appears I've already sent the end' warning•••svn:r932 Roger Dingledine2003-12-14
* change dns notation from question/answer to address/addr•••svn:r929 Roger Dingledine2003-12-14
* more friendly warning when there are too many dns workers•••svn:r919 Roger Dingledine2003-12-14
* more general cleanup•••svn:r915 Roger Dingledine2003-12-14
* use the tor_malloc_zero wrapper•••svn:r837 Roger Dingledine2003-11-18
* let getconfig survive repeated calls. now we call it again when we hup.•••change RecommendedVersions into a config option, so dirservers can hup for a new one svn:r809 Roger Dingledine2003-11-13
* warn on startup that we don't provide anonymity•••make exit dns cache entries last 15 minutes svn:r807 Roger Dingledine2003-11-13
* Add lots of logging to dns.c; change behavior of often-failing assertion•••svn:r778 Nick Mathewson2003-11-08
* make end relay cells have payloads•••move default exit policy into config files svn:r653 Roger Dingledine2003-10-22
* send the end cell when we realize we're going to end,•••not when we're closing the stream. this lets us put a payload in the end cell if we want to, to describe why we're closing the stream. there are still some places where we don't send the end cell immediately. i need to track them down. but it's a low priority, since i've made it send the end cell when we close the stream if we haven't already sent it. svn:r640 Roger Dingledine2003-10-21
* another minor memory leak•••make dnsconn->address reflect what it's currently resolving svn:r624 Roger Dingledine2003-10-18
* Stop using stdout for non-debugging cases•••svn:r592 Nick Mathewson2003-10-15
* change WARNING to WARN•••and fix a few typos svn:r571 Roger Dingledine2003-10-10
* wrap strdup; prefer time() to gettimeofday()•••svn:r538 Roger Dingledine2003-10-04
* refactor so connection_write_to_buf() never fails•••svn:r537 Roger Dingledine2003-10-04
* clean up receiver buckets; prepare for payloads in relay_end; note a few bugs•••svn:r502 Roger Dingledine2003-09-27
* connection_new() can't ever fail•••svn:r497 Roger Dingledine2003-09-27