| Commit message (Expand) | Author | Age |
* | Fold timestamp_created into highres_created•••There's no reason to keep a time_t and a struct timeval to represent
the same value: highres_created.tv_sec was the same as timestamp_created.
This should save a few bytes per circuit.
| Nick Mathewson | 2010-10-15 |
* | Remove "is this too slow?" XXXX comments for code not appearing in profiles | Nick Mathewson | 2010-10-15 |
* | Merge remote branch 'arma/bug1982_2'•••Resolved a minor conflict in:
src/or/circuitbuild.c
| Nick Mathewson | 2010-10-13 |
|\ |
|
| * | allow countries and IP addresses in EntryNodes | Roger Dingledine | 2010-09-29 |
* | | Switch an && to an ||, stop a *NULL. | Nick Mathewson | 2010-10-04 |
* | | More debugging code for node_t branch | Nick Mathewson | 2010-10-01 |
* | | Initial conversion to use node_t throughout our codebase.•••A node_t is an abstraction over routerstatus_t, routerinfo_t, and
microdesc_t. It should try to present a consistent interface to all
of them. There should be a node_t for a server whenever there is
* A routerinfo_t for it in the routerlist
* A routerstatus_t in the current_consensus.
(note that a microdesc_t alone isn't enough to make a node_t exist,
since microdescriptors aren't usable on their own.)
There are three ways to get a node_t right now: looking it up by ID,
looking it up by nickname, and iterating over the whole list of
microdescriptors.
All (or nearly all) functions that are supposed to return "a router"
-- especially those used in building connections and circuits --
should return a node_t, not a routerinfo_t or a routerstatus_t.
A node_t should hold all the *mutable* flags about a node. This
patch moves the is_foo flags from routerinfo_t into node_t. The
flags in routerstatus_t remain, but they get set from the consensus
and should not change.
Some other highlights of this patch are:
* Looking up routerinfo and routerstatus by nickname is now
unified and based on the "look up a node by nickname" function.
This tries to look only at the values from current consensus,
and not get confused by the routerinfo_t->is_named flag, which
could get set for other weird reasons. This changes the
behavior of how authorities (when acting as clients) deal with
nodes that have been listed by nickname.
* I tried not to artificially increase the size of the diff here
by moving functions around. As a result, some functions that
now operate on nodes are now in the wrong file -- they should
get moved to nodelist.c once this refactoring settles down.
This moving should happen as part of a patch that moves
functions AND NOTHING ELSE.
* Some old code is now left around inside #if 0/1 blocks, and
should get removed once I've verified that I don't want it
sitting around to see how we used to do things.
There are still some unimplemented functions: these are flagged
with "UNIMPLEMENTED_NODELIST()." I'll work on filling in the
implementation here, piece by piece.
I wish this patch could have been smaller, but there did not seem to
be any piece of it that was independent from the rest. Moving flags
forces many functions that once returned routerinfo_t * to return
node_t *, which forces their friends to change, and so on.
| Nick Mathewson | 2010-10-01 |
* | | Try to make most routerstatus_t interfaces const | Nick Mathewson | 2010-10-01 |
* | | Try to make most routerinfo_t interfaces const | Nick Mathewson | 2010-10-01 |
* | | Merge branch 'bug1772' into maint-0.2.2 | Roger Dingledine | 2010-09-29 |
|\ \ |
|
| * | | fix two casts | Roger Dingledine | 2010-09-29 |
| * | | Comment network liveness and change detection behavior. | Mike Perry | 2010-09-29 |
| * | | refactor and recomment; no actual changes | Roger Dingledine | 2010-09-29 |
| * | | Cap the circuit build timeout to the max time we've seen.•••Also, cap the measurement timeout to 2X the max we've seen.
| Mike Perry | 2010-09-29 |
| * | | Do away with the complexity of the network liveness detection.•••We really should ignore any timeouts that have *no* network activity for their
entire measured lifetime, now that we have the 95th percentile measurement
changes. Usually this is up to a minute, even on fast connections.
| Mike Perry | 2010-09-29 |
| * | | Fix state checks on liveness handling.•••If we really want all this complexity for these stages here, we need to handle
it better for people with large timeouts. It should probably go away, though.
| Mike Perry | 2010-09-29 |
| * | | Fix non-live condition checks.•••Rechecking the timeout condition was foolish, because it is checked on the
same codepath. It was also wrong, because we didn't round.
Also, the liveness check itself should be <, and not <=, because we only have
1 second resolution.
| Mike Perry | 2010-09-29 |
* | | | Merge commit 'mikeperry/bug1740' into maint-0.2.2 | Roger Dingledine | 2010-09-29 |
|\| |
| |/
|/| |
|
| * | Only count timeout data for 3 hop circuits.•••Use 4/3 of this timeout value for 4 hop circuits, and use half of it for
canabalized circuits.
| Mike Perry | 2010-09-29 |
* | | improve code comments, based on comments from nick | Roger Dingledine | 2010-09-28 |
* | | handle ugly edge case in retrying entrynodes•••Specifically, a circ attempt that we'd launched while the network was
down could timeout after we've marked our entrynodes up, marking them
back down again. The fix is to annotate as bad the OR conns that were
around before we did the retry, so if a circuit that's attached to them
times out we don't do anything about it.
| Roger Dingledine | 2010-09-28 |
* | | Actually notice when our last entrynode goes down•••Otherwise we'd never set have_minimum_dir_info to false, so the
"optimistic retry" would never trigger.
| Roger Dingledine | 2010-09-28 |
* | | optimistically retry EntryNodes on socks request•••We used to mark all our known bridges up when they're all down and we
get a new socks request. Now do that when we've set EntryNodes too.
| Roger Dingledine | 2010-09-28 |
* | | remove a redundant assert | Roger Dingledine | 2010-09-28 |
* | | refactor; no actual changes | Roger Dingledine | 2010-09-28 |
* | | Merge branch 'maint-0.2.1' into maint-0.2.2 | Roger Dingledine | 2010-09-28 |
|\ \
| |/
|/| |
|
| * | actually retry bridges when your network goes away | Roger Dingledine | 2010-09-28 |
* | | Rename has_completed_circuit to can_complete_circuit•••Also redocument it. Related to #1362.
| Nick Mathewson | 2010-09-22 |
* | | A start at a patch for bug 1943 (alignment issues) | Roger Dingledine | 2010-09-20 |
* | | I hear we are close to a release. Clean up the whitespace. | Nick Mathewson | 2010-09-16 |
* | | Fix behavior of adding a cell to a blocked queue.•••We frequently add cells to stream-blocked queues for valid reasons
that don't mean we need to block streams. The most obvious reason
is if the cell arrives over a circuit rather than from an edge: we
don't block circuits, no matter how full queues get. The next most
obvious reason is that we allow CONNECTED cells from a newly created
stream to get delivered just fine.
This patch changes the behavior so that we only iterate over the
streams on a circuit when the cell in question came from a stream,
and we only block the stream that generated the cell, so that other
streams can still get their CONNECTEDs in.
| Nick Mathewson | 2010-09-02 |
* | | Make Sebastian's bug1831 branch build with --enable-gcc-warnings | Nick Mathewson | 2010-08-15 |
* | | Fix misplaced labels | Sebastian Hahn | 2010-08-16 |
* | | Refactor circuit_build_times_parse_state•••Remove the msg parameter to pass an error message out. This
wasn't needed and made it harder to detect a memory leak.
| Sebastian Hahn | 2010-08-16 |
* | | Fix a memory leak in circuit_build_times_parse_state•••Thanks weasel for noticing.
| Sebastian Hahn | 2010-08-16 |
* | | Create routerparse.h | Sebastian Hahn | 2010-07-27 |
* | | Create rephist.h | Sebastian Hahn | 2010-07-27 |
* | | Create relay.h | Sebastian Hahn | 2010-07-27 |
* | | Create policies.h | Sebastian Hahn | 2010-07-27 |
* | | Create onion.h | Sebastian Hahn | 2010-07-27 |
* | | Create networkstatus.h | Sebastian Hahn | 2010-07-27 |
* | | Create main.h | Sebastian Hahn | 2010-07-27 |
* | | Create directory.h | Sebastian Hahn | 2010-07-27 |
* | | Create control.h | Sebastian Hahn | 2010-07-27 |
* | | Create connection_or.h | Sebastian Hahn | 2010-07-27 |
* | | Create connection_edge.h | Sebastian Hahn | 2010-07-27 |
* | | Create connection.h | Sebastian Hahn | 2010-07-27 |
* | | Create config.h | Sebastian Hahn | 2010-07-27 |
* | | Create circuituse.h | Sebastian Hahn | 2010-07-27 |
* | | Create circuitlist.h | Sebastian Hahn | 2010-07-27 |