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 infinite loop when URLSessionWebSocketTask fails #273

Merged
merged 2 commits into from May 15, 2020
Merged

Conversation

VojtaStavik
Copy link
Contributor

In this PR:

  • The original implementation didn't behave correctly when the WS connection fails and ended up in the infinite loop and crashed.

  • We do not want to call doRead() again when the connection fails.

@VojtaStavik VojtaStavik added 🐞 Bug An issue or PR related to a bug high labels May 14, 2020
@VojtaStavik VojtaStavik requested review from buh and b-onc May 14, 2020 12:00
Copy link
Contributor

@b-onc b-onc left a comment

Choose a reason for hiding this comment

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

Please add a changelog! This is user facing fix

@VojtaStavik
Copy link
Contributor Author

How come Danger didn't report on missing changelog?

@b-onc
Copy link
Contributor

b-onc commented May 14, 2020

@VojtaStavik Danger doesn't run when a unit test fails. The test StringExtensionsTests.testExample() failed ¯_(ツ)_/¯

@VojtaStavik VojtaStavik force-pushed the fix-loop branch 3 times, most recently from f9cd2e5 to 242d03d Compare May 15, 2020 12:08
We do not want to call `doRead` again when the connection fails.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug An issue or PR related to a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants