Skip to content

Refactoring and improved onClose behaviour#578

Merged
marci4 merged 2 commits into
TooTallNate:masterfrom
marci4:master
Oct 19, 2017
Merged

Refactoring and improved onClose behaviour#578
marci4 merged 2 commits into
TooTallNate:masterfrom
marci4:master

Conversation

@marci4
Copy link
Copy Markdown
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