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

Refactoring and improved onClose behaviour #578

Merged
merged 2 commits into from
Oct 19, 2017
Merged

Conversation

marci4
Copy link
Collaborator

@marci4 marci4 commented Oct 19, 2017

Description

Refactoring in WebSocketImpl so the getter/setter for readyState are now used
onClose will not have null as a reason any more for no valid utf8-strings

Related Issue

#577

Motivation and Context

Bugfix and code cleanups

How Has This Been Tested?

Test suite

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

-A Getter/Setter is now used for ReadyState
-Invalid UTF-8 messages which cause onClose will not have a null reason
any more
TooTallNate#577
Client will delay closing the socket until there was an interrupt which
normally terminates the WebsocketWriteThread and causes all remaining
message to be pushed out (testsuite fails on random test cases, which is
probably caused by a high load and is not representive for a real usage
scenario)
@marci4 marci4 merged commit 7b4cdff into TooTallNate:master Oct 19, 2017
@marci4 marci4 added this to the Release 1.3.6 milestone Oct 19, 2017
@marci4 marci4 added the Refactor label Nov 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant