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

Release 2.0.3 #57

Merged
merged 5 commits into from
Sep 17, 2020
Merged

Release 2.0.3 #57

merged 5 commits into from
Sep 17, 2020

Conversation

scottinet
Copy link
Contributor

2.0.3 (2020-09-17)

Bug fixes


jenow and others added 4 commits June 18, 2020 16:31
# Description

(note: this is the v2 version of this already validated PR: #54 )

When the WebSocket protocol tries to reconnect and, ultimately, fails, it resets the socket, sets it to null, and then changes its own state to `Closed`. This state change triggers a reset which, in turn, force-closes the current socket and sets it to null.
Since the socket has already been closed and set to null, this ends up in a NullReferenceException.

This PR makes the `WebSocket.ResetState` function reentrant.

# Boyscout

Use `WebSocket.ResetState` at the end of each reconnection attempt to prevent code duplication.
@codecov
Copy link

codecov bot commented Sep 17, 2020

Codecov Report

Merging #57 into master will increase coverage by 0.25%.
The diff coverage is 86.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #57      +/-   ##
==========================================
+ Coverage   82.19%   82.45%   +0.25%     
==========================================
  Files          34       34              
  Lines        1674     1676       +2     
  Branches      194      198       +4     
==========================================
+ Hits         1376     1382       +6     
+ Misses        275      270       -5     
- Partials       23       24       +1     
Impacted Files Coverage Δ
Kuzzle/Protocol/WebSocket.cs 66.66% <0.00%> (+1.50%) ⬆️
Kuzzle/API/Controllers/AuthController.cs 97.72% <100.00%> (+0.12%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0878c10...45ddf08. Read the comment docs.

@scottinet scottinet merged commit a094931 into master Sep 17, 2020
@scottinet scottinet deleted the 2.0.3-proposal branch September 17, 2020 11:58
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.

2 participants