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

[Merged by Bors] - Do not try to sync over transient connections #5603

Closed
wants to merge 1 commit into from

Conversation

ivan4th
Copy link
Contributor

@ivan4th ivan4th commented Feb 26, 2024

Motivation

Transient connections are relayed connections which should only be used for hole punching. Trying to sync over them never succeeds due to resource limits, etc.

Description

Do not try to use transient connections for sync.

Test Plan

Verified by syncing a node with routing discovery and relay enabled, so that hole punching is happening continuously and there are always some temporary relayed connections.
Writing a proper test case for this change is possible in theory, but it's a little too involved compared to the change itself as it requires starting a relay host, obtaining a reservation with it, etc.

Transient connections are relayed connections which should only be
used for hole punching.
Testing this change is possible in theory, but it's a little too
involved compared to the change itself as it requires starting a relay
host, obtaining a reservation with it, etc.
Copy link

codecov bot commented Feb 26, 2024

Codecov Report

Attention: Patch coverage is 93.75000% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 79.7%. Comparing base (9fb6668) to head (c3c8d6c).

Files Patch % Lines
p2p/upgrade.go 83.3% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           develop   #5603   +/-   ##
=======================================
  Coverage     79.7%   79.7%           
=======================================
  Files          270     270           
  Lines        27225   27231    +6     
=======================================
+ Hits         21708   21721   +13     
+ Misses        3971    3964    -7     
  Partials      1546    1546           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ivan4th
Copy link
Contributor Author

ivan4th commented Feb 26, 2024

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Feb 26, 2024
## Motivation

Transient connections are relayed connections which should only be used for hole punching. Trying to sync over them never succeeds due to resource limits, etc.
@spacemesh-bors
Copy link

Pull request successfully merged into develop.

Build succeeded:

@spacemesh-bors spacemesh-bors bot changed the title Do not try to sync over transient connections [Merged by Bors] - Do not try to sync over transient connections Feb 26, 2024
@spacemesh-bors spacemesh-bors bot closed this Feb 26, 2024
@spacemesh-bors spacemesh-bors bot deleted the feature/no-fetch-via-transient branch February 26, 2024 23:45
ivan4th added a commit that referenced this pull request Feb 28, 2024
## Motivation

Transient connections are relayed connections which should only be used for hole punching. Trying to sync over them never succeeds due to resource limits, etc.
ivan4th added a commit that referenced this pull request Feb 29, 2024
Backport #5603: Do not try to sync over transient connections
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants