| Commit message (Collapse) | Author | Age |
| |
|
|\ |
|
| |\ |
|
| | |
| | |
| | |
| | |
| | | |
This won't change any behavior, since it will still be rounded back
up to 2seconds, but should reduce the chances of some extra warns.
|
| |\ \ |
|
| | |/ |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
In the first 100 circuits, our timeout_ms and close_ms
are the same. So we shouldn't transition circuits to purpose
CIRCUIT_PURPOSE_C_MEASURE_TIMEOUT, since they will just timeout again
next time we check.
|
| | | |
|
| | |
| | |
| | |
| | | |
Also, cap the measurement timeout to 2X the max we've seen.
|
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
|\| | |
|
| |\| |
|
| | |
| | |
| | |
| | |
| | | |
We now differentiate between timeouts and cutoffs by the REASON string and
the PURPOSE string.
|
| |\| |
|
| | |
| | |
| | |
| | |
| | | |
Use 4/3 of this timeout value for 4 hop circuits, and use half of it for
canabalized circuits.
|
| | | |
|
|\| | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | |
| | | |
Otherwise we'd never set have_minimum_dir_info to false, so the
"optimistic retry" would never trigger.
|
| | |
| | |
| | |
| | |
| | | |
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.
|
| | | |
|
| | | |
|
| | | |
|
|\| | |
|
| |\ \ |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This is needed for IOCP, since telling the IOCP backend about all
your CPUs is a good idea. It'll also come in handy with asn's
multithreaded crypto stuff, and for people who run servers without
reading the manual.
|
| | | | |
|
|\ \ \ \ |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This commit adds some functions to see what microdescriptors we're missing,
and adds fetch-microdesc/store-microdesc logic to the directory code.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This will be needed when "get_live_consensus" potentially returns a
microdesc consensus.
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
We need this to tell if a given consensus flavor is being downloaded
or not.
|
|\ \ \ \ \
| |/ / / /
|/| / / /
| |/ / / |
|
| | | |
| | | |
| | | |
| | | | |
plus quiet a log line
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
Conflicts:
src/or/config.c
|
| | | | |
|
| |\ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
When we enabled support to change statistic options without restarting
Tor we forgot to initialize geoip_countries. Fix that.
|
| |\ \ \ \
| | |/ / /
| |/| | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The RefuseUnknownExits config option is now a tristate, with "1"
meaning "enable it no matter what the consensus says", "0" meaning
"disable it no matter what the consensus says", and "auto" meaning "do
what the consensus says". If the consensus is silent, we enable
RefuseUnknownExits.
This patch also changes the dirserv logic so that refuseunknownexits
won't make us cache unless we're an exit.
|
|\ \ \ \ \ |
|