summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2011-04-26Merge remote-tracking branch 'public/bug2332' into maint-0.2.2Nick Mathewson
2011-04-26Downgrade notice to info when downloading a cert.Nick Mathewson
2011-04-26fix some comments before they create conflictsRoger Dingledine
2011-04-26Fix compilation in last patchNick Mathewson
2011-04-26Merge remote-tracking branch 'sebastian/bug2704' into maint-0.2.2Nick Mathewson
2011-04-26Fix more of bug 2704Sebastian Hahn
The last entry of the *Maxima values in the state file was inflated by a factor of NUM_SECS_ROLLING_MEASURE (currently 10). This could lead to a wrong maximum value propagating through the state file history.
2011-04-26Don't leak the local hostname in relay nicknamesSebastian Hahn
Fixes bug 2979, reported by tagnaq.
2011-04-25Merge commit '91aa6f08bcf0acbdfa038aaffe73e327ddd87c67' into maint-0.2.2Nick Mathewson
2011-04-22Make the Log configuration option expand ~Sebastian Hahn
2011-04-21Merge remote-tracking branch 'origin/maint-0.2.1' into maint-0.2.2Nick Mathewson
2011-04-21Fix a bug in removing DNSPort requests from their circular listNick Mathewson
Under heavy load, this could result in an assertion failure. Fix for bug 2933; bugfix on 0.2.0.10-alpha.
2011-04-19Prevent hugely inflated observed bandwidth valuesSebastian Hahn
When reading the bw history from the state file, we'd add the 900-second value as traffic that occured during one second. Fix that by adding the average value to each second. This bug was present since 0.2.0.5-alpha, but was hidden until 0.2.23-alpha when we started using the saved values.
2011-04-19Don't sometimes undercount bw averageSebastian Hahn
This fixes the first part of bug 2704. It should occur only rarely when no bw maxima are known. Bugfix on 0.2.2.23-alpha. Fixes bug 2704.
2011-04-19Standardize our printf code on %d, not %i.Nick Mathewson
2011-04-19Merge remote-tracking branch 'rransom/bug2750-v3' into maint-0.2.1Nick Mathewson
2011-04-19Ouch: correctly tabify the micro-revision.i target in Makefile.am (0.2.1 only)Nick Mathewson
2011-04-18Correct HS descriptor length checkNick Mathewson
Fixes bug 2948.
2011-04-18Merge branch 'bug2750-v3' into bug2948Robert Ransom
2011-04-18Add an XXXRobert Ransom
2011-04-18Correct the warning emitted when rejecting an oversized HS descRobert Ransom
2011-04-08Merge branch 'bug2373' into maint-0.2.2Nick Mathewson
2011-04-07Use GetTempDir instead of hardcoded path to c:\windows\tmp for unittestsGisle Vanem
2011-04-07Free pending_cb_messages on exitNick Mathewson
2011-04-07Free circuits_for_buffer_stats on shutdownNick Mathewson
2011-04-07Fix up some cell-queue stats issues in rephist.cNick Mathewson
- Document the structure and variables. - Make circuits_for_buffer_stats into a static variable. - Don't die horribly if interval_length is 0. - Remove the unused local_circ_id field. - Reorder the fields of circ_buffer_stats_t for cleaner alignment layout.
2011-04-07Merge remote-tracking branch 'public/xxx_fixups' into maint-0.2.2Nick Mathewson
Conflicts: src/or/or.h
2011-04-07Allow controllers a more up-to-date view of bridge usage.Nick Mathewson
Instead of answering GETINFO requests about our geoip usage only after running for 24 hours, this patch makes us answer GETINFO requests immediately. We still round and quantize as before. Implements bug2711. Also, refactor the heck out of the bridge usage formatting code. No longer should we need to do a generate-parse-and-regenerate cycle to get the controller string, and that lets us simplify the code a lot.
2011-04-07Fix a compile warning on OS X 10.6Sebastian Hahn
2011-04-06Merge remote-tracking branch 'public/bug2402_again' into maint-0.2.1Nick Mathewson
2011-04-04Merge branch 'maint-0.2.1' into maint-0.2.2Roger Dingledine
2011-04-04switch to the apr 2011 geoip dbRoger Dingledine
2011-03-30Use cbt to tell when to launch parallel intro circuitNick Mathewson
Implement feature from trac #2799
2011-03-30Use timevals, not time_t, when expiring circuits.Nick Mathewson
We've got millisecond timers now, we might as well use them. This change won't actually make circuits get expiered with microsecond precision, since we only call the expiry functions once per second. Still, it should avoid the situation where we have a circuit get expired too early because of rounding. A couple of the expiry functions now call tor_gettimeofday: this should be cheap since we're only doing it once per second. If it gets to be called more often, though, we should onsider having the current time be an argument again.
2011-03-30Implement replacements for timer(add,cmp,sub) on platforms lacking them.Nick Mathewson
2011-03-28Send END_STREAM_REASON_NOROUTE: clients that didn't grok it are now obsoleteNick Mathewson
2011-03-28Improve a few commentsSebastian Hahn
2011-03-28Add a missing cast to silence the compilerSebastian Hahn
2011-03-25Fix handling of StreamID exhaustion.Nick Mathewson
Since svn r1475/git 5b6099e8 in tor-0.0.6, we have responded to an exhaustion of all 65535 stream IDs on a circuit by marking that circuit for close. That's not the right response. Instead, we should mark the circuit as "too dirty for new circuits". Of course in reality this isn't really right either. If somebody has managed to cram 65535 streams onto a circuit, the circuit is probably not going to work well for any of those streams, so maybe we should be limiting the number of streams on an origin circuit concurrently. Also, closing the stream in this case is probably the wrong thing to do as well, but fixing that can also wait.
2011-03-25Add XXX023s for our timestamp_dirty abuse.Nick Mathewson
2011-03-25Clarify some documentation and comments wrt resetting OR token bucketsNick Mathewson
2011-03-25Remove workaround code for bug539Nick Mathewson
We fixed bug 539 (where directories would say "503" but send data anyway) back in 0.2.0.16-alpha/0.1.2.19. Because most directory versions were affected, we added workaround to make sure that we examined the contents of 503-replies to make sure there wasn't any data for them to find. But now that such routers are nonexistent, we can remove this code. (Even if somebody fired up an 0.1.2.19 directory cache today, it would still be fine to ignore data in its erroneous 503 replies.)
2011-03-25Fix some 'impossible' overflow bugs in byte countingNick Mathewson
The first was genuinely impossible, I think: it could only happen when the amount we read differed from the amount we wanted to read by more than INT_MAX. The second is just very unlikely: it would give incorrect results to the controller if you somehow wrote or read more than 4GB on one edge conn in one second. That one is a bugfix on 0.1.2.8-beta.
2011-03-25Look at the right errno when sending reason for connect() failureNick Mathewson
In afe414 (tor-0.1.0.1-rc~173), when we moved to connection_edge_end_errno(), we used it in handling errors from connection_connect(). That's not so good, since by the time connection_connect() returns, the socket is no longer set, and we're supposed to be looking at the socket_errno return value from connection_connect() instead. So do what we should've done, and look at the socket_errno value that we get from connection_connect().
2011-03-25Triage the XXX022 and XXX021 comments remaining in the codeNick Mathewson
Remove some, postpone others, leave some alone. Now the only remaining XXX022s are ones that seem important to fix or investigate.
2011-03-25Comment out ancient asserts for bug 930; resolve an xxx021Nick Mathewson
2011-03-25Fixup tor_addr_to_sockaddr return conventionNick Mathewson
2011-03-25Clean up a comment-conversation about bad libevent version/method combosNick Mathewson
2011-03-25Remove the "fuzzy time" codeNick Mathewson
It was the start of a neat idea, but it only got used in 3 places, none of which really needed it.
2011-03-18Fix signed/unsigned compare warningNick Mathewson
2011-03-18Merge remote branch 'sebastian/bug2696' into maint-0.2.2Nick Mathewson