summaryrefslogtreecommitdiff
path: root/src/or
AgeCommit message (Collapse)Author
2011-11-30bug933 - Match against super-domains in MapAddressRobert Hogan
Allow MapAddress to handle directives such as: MapAddress .torproject.org .torserver.exit MapAddress .org 1.1.1.1 Add tests for addressmap_rewrite.
2011-09-07Fix whitespace issues in patches merged today so farNick Mathewson
2011-09-07chown() sockets when User option is setJérémy Bobbio
Fixes bug 3421
2011-09-07fix a const warningNick Mathewson
2011-09-07Report reason for generating descriptor in an HTTP headerNick Mathewson
Suggested by arma; based on 3327.
2011-09-07Clean up HTTP request header generation a littleNick Mathewson
Use a list of headers rather than trying to printf every header that might exist.
2011-09-07Upload descriptors more often when recent desc is unlistedNick Mathewson
Right now we only force a new descriptor upload every 18 hours. This can make servers become unlisted if they upload a descriptor at time T which the authorities reject as being "too similar" to one they uploaded before. Nothing will actually make the server upload a new descriptor later on, until another 18 hours have passed. This patch changes the upload behavior so that the 18 hour interval applies only when we're listed in a live consensus with a descriptor published within the last 18 hours. Otherwise--if we're not listed in the live consensus, or if we're listed with a publication time over 18 hours in the past--we upload a new descriptor every 90 minutes. This is an attempted bugfix for #3327. If we merge it, it should obsolete #535.
2011-09-07Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
Conflicts: src/or/dirserv.c src/or/networkstatus.c Conflicts were related to routerinfo->node shift.
2011-09-07Merge remote-tracking branch 'public/bug2649_squashed' into maint-0.2.2Nick Mathewson
2011-09-07Remove a now-needless test.Nick Mathewson
2011-09-07Merge remote-tracking branch 'public/split_entry_conn'Nick Mathewson
Conflicts: src/or/connection.c src/or/connection_edge.c src/or/connection_edge.h src/or/dnsserv.c Some of these were a little tricky, since they touched code that changed because of the prop171 fixes.
2011-09-07Die if tor_vasprintf fails in connection_printf_to_bufRobert Ransom
tor_asprintf already asserts if it fails.
2011-09-07Merge remote-tracking branch 'public/bug3851'Nick Mathewson
2011-09-06Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
Conflicts: src/or/connection_edge.c Conflicted on a router->node transition; fix was easy.
2011-09-06Fix assertion in addressmap_clear_excluded_trackexithostsNick Mathewson
Fixes bug 3923; bugfix on 0.2.2.25-alpha; bugfix from 'laruldan' on trac.
2011-09-01Explicitly set bucket_cfg to NULL after we freed itSebastian Hahn
This should fix bug 3888.
2011-08-29Add a bufferevent note to startup logSebastian Hahn
This should help us easily spot if a tor was built with --enable-bufferevent or not
2011-08-29Fix compilation on non-bufferevent systems after 3803 fix: oops.Nick Mathewson
2011-08-29Split out rephist parts of buckets_decrementNick Mathewson
For bufferevents, we had all of connection_buckets_decrement() stubbed out. But that's not actually right! The rephist_* parts were essential for, inter alia, recording our own bandwidth. This patch splits out the rephist parts of connection_buckets_decrement() into their own function, and makes the bufferevent code call that new function. Fixes bug 3803, and probably 3824 and 3826 too. Bugfix on 0.2.3.1-alpha.
2011-08-29Make FetchUselessDescriptors fetch all desc typesNick Mathewson
Previously, if you were set up to use microdescriptors, and you weren't a cache, you'd never fetch router descriptors (except for bridges). Now FetchUselessDescriptors causes descriptors and mirodescs to get cached. Also, FetchUselessDescriptors changes the behavior of "UseMicrodescriptors auto" to be off, since there's no point in saying "UseMicrodescriptors 1" when you have full descriptors too. Fix for bug 3851; bugfix on 0.2.3.1-alpha.
2011-08-27Clarify the heartbeat message a bit.George Kadianakis
2011-08-26Fix a bufferevent-related bug that killed tunneled dirserv connsNick Mathewson
Because tunneled connections are implemented with buffervent_pair, writing to them can cause an immediate flush. This means that added to them and then checking to see whether their outbuf is empty is _not_ an adequate way to see whether you added anything. This caused a problem in directory server connections, since they would try spooling a little more data out, and then close the connection if there was no queued data to send. This fix should improve matters; it only closes the connection if there is no more data to spool, and all of the spooling callbacks are supposed to put the dirconn into dir_spool_none on completion. This is bug 3814; Sebastian found it; bugfix on 0.2.3.1-alpha.
2011-08-24Set write low-watermarks on all bufferevents.Nick Mathewson
If we don't do this, then we never invoke the bufferevent write callbacks until all the bufferevent's data is flushed.
2011-08-24Apply rate-limiting to the lowest bufferevent in the stack.Nick Mathewson
When we're doing filtering ssl bufferevents, we want the rate-limits to apply to the lowest level of the bufferevent stack, so that we're actually limiting bytes sent on the network. Otherwise, we'll read from the network aggressively, and only limit stuff as we process it.
2011-08-19Disable run-time changes to DisableIOCP: They do not workNick Mathewson
2011-08-18Remove warning about a loop parsing evbuffer socksNick Mathewson
This behavior is normal when we want more data than the evbuffer actually has for us. We'll ask for (say) 7 bytes, get only 5 (because that's all there is), try to parse the 5 bytes, and get told "no, I want 7". One option would be to bail out early whenever want_length is > buflen, but sometimes we use an over-large want_length. So instead, let's just remove the warning here: it's not a bug after all.
2011-08-18Appease "make check-spaces"Nick Mathewson
2011-08-17Use evbuffer_copyout() in inspect_evbuffer().Nick Mathewson
2011-08-17Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
Conflicts: src/or/config.c
2011-08-17Don't write ControlPorts to disk till after we setuid and make datadirNick Mathewson
Fix for bug 3747; bugfix on 0.2.2.26-beta.
2011-08-17Merge branch 'bug3743'Nick Mathewson
2011-08-17Remove a needless config_find_optionNick Mathewson
2011-08-17Actually pick a random port when "auto" is specifiedSebastian Hahn
ddc65e2b3303559ab7b842a176ee6c2eda9e4027 had broken this
2011-08-16Don't compare LINELIST_S and OBSOLETE config options.Kamran Riaz Khan
2011-08-15Merge remote-tracking branch 'asn/bug3728'Nick Mathewson
2011-08-15Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
2011-08-15Remove extra quotation marks around the result of esc_for_logRobert Ransom
2011-08-15Oops; _actually_ enable microdesc-by-default for clientsNick Mathewson
It turns out that it wasn't enough to set the configuration to "auto", since the correct behavior for "auto" had been disabled in microdesc.c. :p (Hasn't been in a release yet, so doesn't need a changes entry.)
2011-08-13Free global_rate_limit in connection_free_all().George Kadianakis
2011-08-13Move connection_free_all() to the bottom of connection.c to enjoy maximum ↵George Kadianakis
visibility.
2011-08-10Whitespace tweaksNick Mathewson
2011-08-10Fix a const warning in bug1692 codeNick Mathewson
2011-08-10Merge branch 'bug1692-squashed'Nick Mathewson
2011-08-10Fix condition reported by nickm.Kamran Riaz Khan
2011-08-10Return if CONF_CHANGED isn't interesting.Kamran Riaz Khan
2011-08-10Escape configuration values before sending them via CONF_CHANGED.Kamran Riaz Khan
2011-08-10Use smartlist_asprintf_add() to improve readability.Kamran Riaz Khan
2011-08-09Make FooPort 0 correctly disable the FooPort.Nick Mathewson
Since the prop171 stuff, it had instead made Tor bind port 0, and re-bind it differently all the time. Resolves bug3704; not in any released version.
2011-08-09Sticking a size_t into long generates a warn on winSebastian Hahn
2011-08-09Minor code readability fix.Kamran Riaz Khan