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

Fix the race condition during create initial connection #64

Merged
merged 1 commit into from
Apr 1, 2021

Conversation

madogiwa
Copy link
Contributor

I think that this PR is likely to resolve issue #63.

Below is an example sequence to describe the problem fixed by the PR.

  1. Execute await createWS at and wait for it to finish.
  2. processData is called, ws is created at and sent data using ws.
  3. await createWS is finished, ws is overwritten to a new connection.
  4. processData is called again, the data is sent using the new ws.

I don't know the specific reason, but sending data from a different WS along the way seems to cause TLS issues.

@proAlexandr proAlexandr merged commit 1998548 into pixel-point:master Apr 1, 2021
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