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

[relay-server] Move the handshake logic to separated struct #2648

Merged
merged 4 commits into from
Oct 12, 2024

Conversation

pappz
Copy link
Contributor

@pappz pappz commented Sep 25, 2024

Describe your changes

Fix flickering unit test

Move the handshake logic to separated struct but fully keep the protocol.

  • The server will respond to the client after it is ready to process the peer
  • Preload the response messages

The authentication step is faster because do not need to marshal the response messages and this change fix flickering tests (see: NB-1047).

Issue ticket number and link

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

- The server will response to the client after it ready to process the peer
- Preload the response messages
@pappz pappz changed the title Move the handshake logic to separated struct [relay-server] Move the handshake logic to separated struct Sep 25, 2024
@pappz pappz marked this pull request as ready for review September 27, 2024 11:41
Measure the Relay client's authentication time
Copy link

@pappz pappz merged commit d93dd4f into main Oct 12, 2024
21 checks passed
@pappz pappz deleted the relay/fix-handshake-response branch October 12, 2024 16:21
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