summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-09-07chown() sockets when User option is setJérémy Bobbio
Fixes bug 3421
2011-09-07fix a const warningNick Mathewson
2011-09-07Merge branch 'bug3327_squashed'Nick 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-07changes file for split_entry_conn (ticket 3627)Nick 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 'origin/maint-0.2.2'Nick Mathewson
Conflicts: configure.in Conflict was between two pieces of configure.in logic added to the same place. Trivial.
2011-09-07Look for correct "ar" to cross-compileNick Mathewson
For some reason, autoconf doesn't by default have an "AC_PROG_AR" for this -- possibly it's assumed that any "ar" you have will work everyplace. Fixes bug 3909; found by sid77. This fixes a build issue first present in fdbdb4dc1500, but the bug (of not using a correct ar) has been in every Tor version ever: it just didn't matter until then.
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-02bump to 0.2.3.3-alpha-devRoger Dingledine
2011-09-02merge in one moretor-0.2.3.3-alphaRoger Dingledine
2011-09-02Merge branch 'maint-0.2.2'Roger Dingledine
2011-09-02Correct man page: multiple control auth styles can be set at onceRoger Dingledine
2011-09-02bump to 0.2.3.3-alphaRoger Dingledine
2011-09-01fold in last changes itemRoger Dingledine
2011-09-01Handle test case where fgets() sees EOF on the last readSteven Murdoch
On some platforms, with non-blocking IO, on EOF you first get EAGAIN, and then on the second read you get zero bytes and EOF is set. However on others, the EOF flag is set as soon as the last byte is read. This patch fixes the test case in the latter scenario.
2011-09-01Merge branch 'bug3888'Nick Mathewson
2011-09-01Changes file for bug3888Nick Mathewson
2011-09-01Fix double-closing a stdio streamSteven Murdoch
After a stream reached eof, we fclose it, but then test_util_spawn_background_partial_read() reads from it again, which causes an error and thus another fclose(). Some platforms are fine with this, others (e.g. debian-sid-i386) trigger a double-free() error. The actual code used by Tor (log_from_pipe() and tor_check_port_forwarding()) handle this case correctly.
2011-09-01Explicitly set bucket_cfg to NULL after we freed itSebastian Hahn
This should fix bug 3888.
2011-09-01clean 0.2.3.3-alpha changelogRoger Dingledine
ready when you are, nick
2011-08-31Tweaks on last process-launch patchesNick Mathewson
2011-09-01Make a version of tor_read_all_handle() for non-Windows platformsSteven Murdoch
Mainly used for testing reading from subprocesses. To be more generic we now pass in a pointer to a process_handle_t rather than a Windows- specific HANDLE.
2011-08-31Fix off-by-one error when allocating memory in test_util_split_lines()Steven Murdoch
Triggered "failed OVER picket-fence magic-number check (err 27)" when memory debugging using dmalloc is enabled (at 'low' or higher).
2011-08-31First draft of an 0.2.3.3-alpha changelogNick Mathewson
2011-08-31Add a missing include to util.c to get waitpid() on LinuxNick Mathewson
2011-08-30Rename tor_join_cmdline to tor_join_win_cmdline; tweak doxygenNick Mathewson
2011-08-30Merge remote-tracking branch 'sjmurdoch/bug2046'Nick Mathewson
2011-08-30Document limitation of log_from_handle with partial readsSteven Murdoch
2011-08-30Factor out and re-write code for splitting lines from a handleSteven Murdoch
Now handles non-printable characters and will not output a spurious new-line if given a partial line.
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-29Refactor out command line formattingSteven Murdoch
Now correctly handles whitespace, quotes and backslashes. Passes all unit tests.
2011-08-28add another heuristic for making release notesRoger Dingledine
2011-08-29Add a sanity checkSteven Murdoch
2011-08-29Replace two magic tristates with #define'd namesSteven Murdoch
- process_handle_t.status - return value of tor_get_exit_code()
2011-08-28Make signature of tor_spawn_background more conventionalSteven Murdoch
Conventionally in Tor, structs are returned as pointers, so change tor_spawn_background() to return the process handle in a pointer rather than as return value.
2011-08-27update punctuation now that we've seen the source textRoger Dingledine
2011-08-27Clarify the heartbeat message a bit.George Kadianakis
2011-08-26update changelog/release notes from release-0.2.2Roger Dingledine