Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hs-v3: Make service pick the exact amount of intro points #1274

Open
wants to merge 2 commits into
base: maint-0.3.5
Choose a base branch
from

Conversation

Labels
None yet
Projects
None yet
3 participants
@dgoulet-tor
Copy link
Contributor

@dgoulet-tor dgoulet-tor commented Aug 29, 2019

When encoding introduction points, we were not checking if that intro points
had an established circuit.

When botting up, the service will pick, by default, 3 + 2 intro points and the
first 3 that establish, we use them and upload the descriptor.

However, the intro point is removed from the service descriptor list only when
the circuit has opened and we see that we have already enough intro points, it
is then removed.

But it is possible that the service establishes 3 intro points successfully
before the other(s) have even opened yet.

This lead to the service encoding extra intro points in the descriptor even
though the circuit is not opened or might never establish (#31561).

Fixes #31548

Signed-off-by: David Goulet dgoulet@torproject.org

When encoding introduction points, we were not checking if that intro points
had an established circuit.

When botting up, the service will pick, by default, 3 + 2 intro points and the
first 3 that establish, we use them and upload the descriptor.

However, the intro point is removed from the service descriptor list only when
the circuit has opened and we see that we have already enough intro points, it
is then removed.

But it is possible that the service establishes 3 intro points successfully
before the other(s) have even opened yet.

This lead to the service encoding extra intro points in the descriptor even
though the circuit is not opened or might never establish (#31561).

Fixes #31548

Signed-off-by: David Goulet <dgoulet@torproject.org>
@coveralls
Copy link

@coveralls coveralls commented Aug 29, 2019

Pull Request Test Coverage Report for Build 6531

  • 0 of 2 (0.0%) changed or added relevant lines in 1 file are covered.
  • 574 unchanged lines in 6 files lost coverage.
  • Overall coverage increased (+0.0005%) to 60.288%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/feature/hs/hs_service.c 0 2 0.0%
Files with Coverage Reduction New Missed Lines %
src/feature/dirauth/shared_random.c 3 85.64%
src/feature/dirauth/dirvote.c 9 64.79%
src/app/config/confparse.c 52 78.38%
src/feature/nodelist/routerlist.c 66 37.62%
src/feature/client/entrynodes.c 74 86.19%
src/core/or/connection_edge.c 370 26.73%
Totals Coverage Status
Change from base Build 5964: 0.0005%
Covered Lines: 42873
Relevant Lines: 71114

💛 - Coveralls

src/feature/hs/hs_service.c Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment