aboutsummaryrefslogtreecommitdiff
path: root/src/or
AgeCommit message (Collapse)Author
2009-06-19Better fix for 997.Karsten Loesing
2009-06-19Revert "Backport fix for bug 997."Karsten Loesing
This reverts commit 3847f54945933a11d14053b80427f268ffcfd8ad.
2009-06-16Backport fix for bug 997.Karsten Loesing
Backporting 6a32beb and ca8708a.
2009-06-16Revise earlier check for correct IPv4 addr length to check for ==4.Nick Mathewson
We need this to match the check in connection_ap_handshake_socks_resolved(). Found by optimist.
2009-06-12Check answer_len in the remap_addr case of process_relay_cell_not_open.Roger Dingledine
Fix an edge case where a malicious exit relay could convince a controller that the client's DNS question resolves to an internal IP address. Bug found and fixed by "optimist"; bugfix on 0.1.2.8-beta.
2009-06-05Avoid a memory corruption problem related to "private" in DirPolicy.Nick Mathewson
This is a posible fix for bug 996.
2009-06-03Fix gprof bottlenecks on exit nodes found by Jacob.Nick Mathewson
Apparently all the stuff that does a linear scan over all the DNS cache entries can get really expensive when your DNS cache is very large. It's hard to say how much this will help performance, since gprof doesn't count time spent in OpenSSL or zlib, but I'd guess 10%. Also, this patch removes calls to assert_connection_ok() from inside the read and write callbacks, which are similarly unneeded, and a little costlier than I'm happy with. This is probably worth backporting to 0.2.0.
2009-05-31Do not report a node as a "chosen exit" when it is not in fact an exit.Nick Mathewson
Provide a useful warning when launch_circuit tries to make us use a node we don't want to use. Just give an info message when this is a normal and okay situation. Fix for logging issues in bug 984.
2009-05-31Make the second argument to routerset_contains_extendinfo constNick Mathewson
2009-05-30Don't attempt to log messages to a controller from a worker thread.Nick Mathewson
This patch adds a function to determine whether we're in the main thread, and changes control_event_logmsg() to return immediately if we're in a subthread. This is necessary because otherwise we will call connection_write_to_buf, which modifies non-locked data structures. Bugfix on 0.2.0.x; fix for at least one of the things currently called "bug 977".
2009-05-29Clean up a bit of C logic, and fix an erroneous warning.Nick Mathewson
(Simplify "if (cond) return 1; return 0;" to "return cond;", and don't give a warning when we start with accounting on but dirport off.)
2009-05-30Consider *ListenAddress when warning about low ports and hibernationSebastian Hahn
Tas (thanks!) noticed that when *ListenAddress is set, Tor would still warn on startup when *Port is low and hibernation is active. The patch parses all the *ListenAddress lines, and checks the ports. Bugfix on 0.2.1.15-rc
2009-05-28Two more spelling fix fixes.Nick Mathewson
2009-05-28Fixes to spelling fixes. Thanks, Roger!Nick Mathewson
2009-05-27Fix unit tests that were broken after last fix of #932.Karsten Loesing
With the last fix of task 932 (5f03d6c), client requests are only added to the history when they happen after the start of the current history. This conflicts with the unit tests that insert current requests first (defining the start of the client request history) followed by requests in the past. The fix is to insert requests in chronological order in the unit tests.
2009-05-27Spell-check Tor.Nick Mathewson
2009-05-27Improve documentation for the last fix of bug 932.Karsten Loesing
2009-05-27Fix bug 932 even more.Karsten Loesing
Ignore connections two hours after switching from bridge to relay or back.
2009-05-25Use tor_socket_strerror in eventdns.c. Fixes bug 987.Nick Mathewson
2009-05-22Finish up the 0.2.1 version of the bug 957 fix.Nick Mathewson
Basically, all this means is downgrading our warning messages to debug messages, since the bug workaround code here is adequate to stop the bug.
2009-05-22fix a spelling mistake in config.c for "contries"phobos
2009-05-18Possible fix for crash bug related to event timeouts. [Bug 957]Nick Mathewson
If we ever add an event, then set it, then add it again, there will be now two pointers to the event in the event base. If we delete one and free it, the first pointer will still be there, and possibly cause a crash later. This patch adds detection for this case to the code paths in eventdns.c, and works around it. If the warning message ever displays, then a cleverer fix is in order. {I am not too confident that this *is* the fix, since bug 957 is very tricky. If it is, it is a bugfix on 0.2.0.}
2009-05-17Fix a memory leak when v3 directory authorities load their keysRoger Dingledine
and cert from disk. Bugfix on 0.2.0.1-alpha.
2009-05-17Fix valgrind error when marking a descriptor as never-downloadable.Nick Mathewson
When we got a descriptor that we (as an authority) rejected as totally bad, we were freeing it, then using the digest in its RAM to look up its download status. Caught by arma with valgrind. Bugfix on 0.2.1.9-alpha.
2009-05-14Fix misreporting of stream bandwidths.Mike Perry
2009-05-13Use | with flags, not +.Nick Mathewson
2009-05-13Prevent bridges from publishing router descriptors.Karsten Loesing
Bridges are not supposed to publish router descriptors to the directory authorities. It defeats the point of bridges when they are included in the public relay directory. This patch puts out a warning and exits when the node is configured as a bridge and to publish v1, v2, or v3 descriptors at the same time. Also fixes part of bug 932.
2009-05-13When our bridge status changes, forget old geoip data.Nick Mathewson
This fixes bug 932, where all of our usage totals for users when we were a regular server would get included in the extrainfo document.
2009-05-12Warn when hibernation and low-port on non-windows is configuredSebastian Hahn
This addresses the first part of bug 918. Users are now warned when they try to use hibernation in combination with a port below 1024 when they're not on Windows. We don't want to die here, because people might run Tor as root, use a capabilities system or some other platform that will allow them to re-attach low ports. Wording suggested by Marian
2009-05-12Better debugging output for bug 977 case.Nick Mathewson
(Don't crash immediately if we have leftover chunks to free after freeing chunks in a buffer freelist; instead log a debugging message that might help.)
2009-05-04Update copyright to 2009.Karsten Loesing
2009-04-23Return -1 in the error case from read_bandwidth_usage.Sebastian Hahn
svn:r19367
2009-04-16Documentation fix.Karsten Loesing
svn:r19337
2009-04-12Raise the minimum bandwidth to be a relay from 20000 bytes to 20480Roger Dingledine
bytes (aka 20KB/s), to match our documentation. Also update directory authorities so they always assign the Fast flag to relays with 20KB/s of capacity. Now people running relays won't suddenly find themselves not seeing any use, if the network gets faster on average. svn:r19305
2009-04-11For belt-and-suspenders, relays that don't set Address in their configRoger Dingledine
now avoid using begin_dir for all direct connections. svn:r19296
2009-04-11make it compile tooRoger Dingledine
svn:r19295
2009-04-11play make-believe that addr isn't a uint32_tRoger Dingledine
svn:r19293
2009-04-11fix the same bug in two more locations (thanks to lark for proddingRoger Dingledine
me further) svn:r19292
2009-04-11Finally fix the bug where dynamic-IP relays disappear when theirRoger Dingledine
IP address changes: directory mirrors were mistakenly telling them their old address if they asked via begin_dir, so they never got an accurate answer about their new address, so they just vanished after a day. Should fix bugs 827, 883, and 900 -- but alas, only after every directory mirror has upgraded. svn:r19291
2009-04-11only log that at loglevel notice if there's a problem with theRoger Dingledine
version. otherwise there's no reason to tell the user we're doing behind-the-scenes cleaning. svn:r19288
2009-04-11Clients replace entry guards that were chosen more than a few monthsRoger Dingledine
ago. This change should significantly improve client performance, especially once more people upgrade, since relays that have been a guard for a long time are currently overloaded. svn:r19287
2009-04-11fix a commentRoger Dingledine
svn:r19262
2009-04-11If the bridge config line doesn't specify a port, assume 443.Roger Dingledine
This makes bridge lines a bit smaller and easier for users to understand. Also, remove a duplicate changelog entry from the past. svn:r19260
2009-04-11Directory authorities should accept a descriptor as changed when the relay ↵Sebastian Hahn
operator changed the bandwithrate or bandwithburst settings. svn:r19259
2009-04-10commit sebastian's patch to not require contactinfo when testingtornetworkRoger Dingledine
is set svn:r19257
2009-04-09Fix a few crash bugs related to malormed descriptors. Lark found one; ↵Nick Mathewson
fuzzing found the rest. svn:r19250
2009-04-01log more verbosely when we accept or decline a router descriptor,Roger Dingledine
to help track whether we received them when a relay operator claims they got sent. svn:r19213
2009-03-31if a directory authority declines our server descriptors because it'sRoger Dingledine
not new enough, write that in the logs. might be helpful one day. svn:r19195
2009-03-31Limit uploaded directory documents to be 16M rather than 500K.Roger Dingledine
The directory authorities were refusing v3 consensus votes from other authorities, since the votes are now 504K. Fixes bug 959; bugfix on 0.0.2pre17 (where we raised it from 50K to 500K ;). svn:r19194
2009-03-31Directory authorities should never send a 503 "busy" response toRoger Dingledine
requests for votes or keys. Bugfix on 0.2.0.8-alpha; exposed by bug 959. svn:r19189