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

NET - repeat protocol messages #1872

Closed
nieznanysprawiciel opened this issue Mar 9, 2022 · 2 comments · Fixed by golemfactory/ya-relay#218 or #2263
Closed

NET - repeat protocol messages #1872

nieznanysprawiciel opened this issue Mar 9, 2022 · 2 comments · Fixed by golemfactory/ya-relay#218 or #2263
Assignees

Comments

@nieznanysprawiciel
Copy link
Contributor

nieznanysprawiciel commented Mar 9, 2022

Why:

  • UDP messages don't have to reach destination, so we need to repeat them

What:

  • If there is no response / confirmation, send the same protocol message N times with the same request_id and timeout
  • Example: if we have get_node call that timeouts in 3 seconds, we should:
    • Split timeout into N timespans
    • Send message on the beginning of each timespan (for N=4, 0s, 0.75s, 1.5s, 2.25s)
    • If we get more than one response message, we should ignore duplicates
@nieznanysprawiciel
Copy link
Contributor Author

related to: golemfactory/ya-relay#191

@nieznanysprawiciel
Copy link
Contributor Author

nieznanysprawiciel commented Oct 4, 2022

Could solve: golemfactory/ya-relay#197

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants