Skip to content

Conversation

@scottinet
Copy link
Contributor

@scottinet scottinet commented Sep 18, 2020

2.0.4 (2020-09-18)

Bug fixes


jenow and others added 7 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.
# Description

Workaround to kuzzleio/kuzzle#1784: submit the expiration delay as a rounded number of seconds, to make Kuzzle correctly convert it to sign a new token.
@scottinet scottinet closed this Sep 18, 2020
@scottinet scottinet reopened this Sep 18, 2020
@codecov
Copy link

codecov bot commented Sep 18, 2020

Codecov Report

Merging #61 into master will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #61      +/-   ##
==========================================
- Coverage   82.45%   82.44%   -0.02%     
==========================================
  Files          34       34              
  Lines        1676     1675       -1     
  Branches      198      197       -1     
==========================================
- Hits         1382     1381       -1     
  Misses        270      270              
  Partials       24       24              
Impacted Files Coverage Δ
Kuzzle/API/Controllers/AuthController.cs 97.70% <100.00%> (-0.02%) ⬇️

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 1c9d119...c568e35. Read the comment docs.

@scottinet scottinet merged commit b253d47 into master Sep 18, 2020
@scottinet scottinet deleted the 2.0.4-proposal branch September 18, 2020 15:39
@scottinet scottinet restored the 2.0.4-proposal branch September 29, 2020 08:37
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.

3 participants