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

Restore reverse connection #250

Merged
merged 11 commits into from
Jul 11, 2023
Merged

Conversation

nieznanysprawiciel
Copy link
Contributor

@nieznanysprawiciel nieznanysprawiciel commented Jun 27, 2023

resolves: #246

Additional changes:

  • Fixed ya-relay-server to return neighborhood properly, when public key was not requested
  • Utilities to capture protocol messages in tests and process them differently than default implementation
  • Added a few additional metrics to track type of session with other Nodes

Tested with yagna to reproduce bug: golemfactory/yagna#2501
I ran yagna a few times with neighborhood set to 50 Nodes and problem didn't occur.
But in general I had problems running yagna with so big neighborhood. Requests to ya-relay-server were timeouting most of the times. I suspected that this is due to too large neighborhood packets (#139) being dropped by my router, because ya-relay-server sends response.

As a conclusion: we need to still observe if deadlock will occur again.

@nieznanysprawiciel nieznanysprawiciel changed the base branch from main to redesign-idea June 27, 2023 12:44
@nieznanysprawiciel nieznanysprawiciel force-pushed the restore-reverse-connection branch from a0c824f to 87ede5e Compare June 28, 2023 15:05
@nieznanysprawiciel nieznanysprawiciel force-pushed the restore-reverse-connection branch from 0822fb7 to 7b31748 Compare June 29, 2023 12:41
@@ -1340,7 +1392,7 @@ impl Handler for SessionLayer {
Some(session) => session,
};

let node = if slot == FORWARD_SLOT_ID {
let sender = if is_direct_message(slot) {
// Direct message from other Node.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unnecessary comment

@MrDarthShoe MrDarthShoe merged commit 04da94b into redesign-idea Jul 11, 2023
@prekucki prekucki deleted the restore-reverse-connection branch July 26, 2023 12:05
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.

Restore ReverseConnection functionality
2 participants