aboutsummaryrefslogtreecommitdiff
path: root/src/or/dns.c
Commit message (Collapse)AuthorAge
* Basic RAM poisoning and magic-checking to notice connection and circuitNick Mathewson2004-02-25
| | | | | | | | 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
* remove dead codeRoger Dingledine2004-02-25
| | | | svn:r1121
* fix some bugs in assert_connection_okRoger Dingledine2004-02-24
| | | | svn:r1118
* start hunting the lucky-bugRoger Dingledine2004-02-22
| | | | svn:r1116
* split the token bucket into 'rate' and 'burst' paramsRoger Dingledine2004-01-10
| | | | | | | | | | | we're not entirely migrated to burst yet, for backward compatibility note some win32 probable-bugs clean up routerlist.c svn:r982
* Fix the dns bug: children weren't dyingRoger Dingledine2004-01-06
| | | | | | | | | | | | | | | 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
* betcha didn't know strncpy could leave an unterminated stringRoger Dingledine2003-12-17
| | | | svn:r949
* Make compile warning-free on cygwinNick Mathewson2003-12-15
| | | | svn:r936
* start tracking the 'It appears I've already sent the end' warningRoger Dingledine2003-12-14
| | | | svn:r932
* change dns notation from question/answer to address/addrRoger Dingledine2003-12-14
| | | | svn:r929
* more friendly warning when there are too many dns workersRoger Dingledine2003-12-14
| | | | svn:r919
* more general cleanupRoger Dingledine2003-12-14
| | | | svn:r915
* use the tor_malloc_zero wrapperRoger Dingledine2003-11-18
| | | | svn:r837
* let getconfig survive repeated calls. now we call it again when we hup.Roger Dingledine2003-11-13
| | | | | | | | change RecommendedVersions into a config option, so dirservers can hup for a new one svn:r809
* warn on startup that we don't provide anonymityRoger Dingledine2003-11-13
| | | | | | | make exit dns cache entries last 15 minutes svn:r807
* Add lots of logging to dns.c; change behavior of often-failing assertionNick Mathewson2003-11-08
| | | | svn:r778
* make end relay cells have payloadsRoger Dingledine2003-10-22
| | | | | | | move default exit policy into config files svn:r653
* send the end cell when we realize we're going to end,Roger Dingledine2003-10-21
| | | | | | | | | | | | | | | 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
* another minor memory leakRoger Dingledine2003-10-18
| | | | | | | make dnsconn->address reflect what it's currently resolving svn:r624
* Stop using stdout for non-debugging casesNick Mathewson2003-10-15
| | | | svn:r592
* change WARNING to WARNRoger Dingledine2003-10-10
| | | | | | | and fix a few typos svn:r571
* wrap strdup; prefer time() to gettimeofday()Roger Dingledine2003-10-04
| | | | svn:r538
* refactor so connection_write_to_buf() never failsRoger Dingledine2003-10-04
| | | | svn:r537
* clean up receiver buckets; prepare for payloads in relay_end; note a few bugsRoger Dingledine2003-09-27
| | | | svn:r502
* connection_new() can't ever failRoger Dingledine2003-09-27
| | | | svn:r497
* first pass: obey log conventionRoger Dingledine2003-09-26
| | | | | | | | | | | | | | | | | | | | | ERR is if something fatal just happened WARNING is something bad happened, but we're still running. The bad thing is either a bug in the code, an attack or buggy protocol/implementation of the remote peer, etc. The operator should examine the bad thing and try to correct it. (No error or warning messages should be expected. I expect most people to run on -l warning eventually.) NOTICE is never ever used. INFO means something happened (maybe bad, maybe ok), but there's nothing you need to (or can) do about it. DEBUG is for everything louder than INFO. svn:r486
* Refactor buffers; implement descriptors.Nick Mathewson2003-09-25
| | | | | | | | | | | | | | | | | 'buf_t' is now an opaque type defined in buffers.c . Router descriptors now include all keys; routers generate keys as needed on startup (in a newly defined "data directory"), and generate their own descriptors. Descriptors are now self-signed. Implementation is not complete: descriptors are never published; and upon receiving a descriptor, the directory doesn't do anything with it. At least "routers.or" and orkeygen are now obsolete, BTW. svn:r483
* refactor connects into connection_connect()Roger Dingledine2003-09-16
| | | | svn:r460
* fix the cpuworker circ-had-vanished bug (maybe)Roger Dingledine2003-09-14
| | | | | | | still several (many) tls-related bugs outstanding. svn:r454
* note an assert bug that's still aroundRoger Dingledine2003-08-25
| | | | svn:r417
* implemented cpuworkersRoger Dingledine2003-08-20
| | | | | | | | | | please poke at it and report bugs still needs polishing, and only handles onions now (should handle OR handshakes too) svn:r402
* start refactoring dnsworker so testing won't be so darn hardRoger Dingledine2003-08-14
| | | | | | | | | add NumCpus config variable in preparation for cpuworkers hardcode /etc/torrc path for config (simplifies win32 port) improve exit policy debugging during router entry parsing svn:r397
* bugfix: if a dnsworker dies, remember that.Roger Dingledine2003-08-13
| | | | svn:r396
* Adopt socketpair implementation from perl. For now, always use it.Nick Mathewson2003-08-12
| | | | svn:r389
* use the spawn_func / spawn_exit abstraction for dnsworkersRoger Dingledine2003-08-12
| | | | svn:r388
* Start of port to win32. Missing are:Nick Mathewson2003-08-12
| | | | | | | | | | | | | | | | - signal support - forking for DNS farm - changes for async IO - daemonizing In other words, some files still don't build, and the ones that do build, do nonblocking IO incorrectly. I'm also not checking in the project files till I have a good place for them. svn:r380
* if stream ends before resolve finishes, inform resolverRoger Dingledine2003-06-27
| | | | svn:r359
* entries in the dns cache now expireRoger Dingledine2003-06-25
| | | | | | | | | | (expiry time set to 100 seconds so we can play with it) exit connections are now informed when pending resolves fail we kill off the oldest busy worker when we're under attack and need to resolve something new svn:r356
* simplify fetch_from_buf; cull idle dnsworkers.Roger Dingledine2003-06-25
| | | | svn:r354
* a pointer to async-dns alternatives.Roger Dingledine2003-06-24
| | | | | | | | apparently glibc 2.2.4 and windows both have async gethostbynames now. we'll want to make use of them if they're available (via autoconf). svn:r347
* overhaul the dns farm: cut its size in halfRoger Dingledine2003-06-17
| | | | | | | | | | i've eliminated the master dns process, so now the workers just act like regular connections and are handled by the normal pollarray. everything seems to still work. ;) svn:r327
* implement truncate and truncated (untested)Roger Dingledine2003-06-12
| | | | | | | clean up circuit_deliver_relay_cell convention svn:r312
* add circuit-level sendme relay cellsRoger Dingledine2003-05-20
| | | | | | | | | | remove sendme cells replace malloc with tor_malloc patch (but not track down) bug in onion pending list streamline connection_ap handshake svn:r293
* Add magic to end of C files to make emacs happy; split test invocation into ↵Nick Mathewson2003-04-07
| | | | | | separate file. svn:r224
* make servers tolerate the dns bug.Roger Dingledine2003-04-05
| | | | svn:r223
* better comments and a few patchesRoger Dingledine2003-03-04
| | | | svn:r164
* Bugfixes and enhancements in sendmes and dns farmRoger Dingledine2003-02-18
| | | | svn:r161
* bugfix: actually remember the answer in the cache :)Roger Dingledine2003-02-16
| | | | svn:r159
* rudimentary dns caching (of both resolves and resolve failures)Roger Dingledine2003-02-14
| | | | | | | serious performance increase over non-caching svn:r158
* fix endian issues for topics -- they might work on bsd nowRoger Dingledine2003-02-06
| | | | | | | | | (they wouldn't have before) alternate code which bypasses the dns farm, so we can compare speed svn:r154