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(push): track onClose Atmosphere events to properly reconnect and resubscribe #2842

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

cromoteca
Copy link
Contributor

@cromoteca cromoteca commented Oct 16, 2024

Adds a new status to track if the channel was closed and trigger reconnection callback only once, but on different events, as the event chain is different according to how the connection disruption happens.

Detected chains are:

onClose => onReconnect => onReopen
onClose => onOpen

Fixes #2834

It's better to fix #2841 before merging.

@cromoteca cromoteca changed the title Fix/2834/Flux-connection-is-not-properly-resumed-in-some-cases fix(push): track onClose Atmosphere events to properly reconnect and resubscribe Oct 16, 2024
@cromoteca cromoteca force-pushed the fix/2834/Flux-connection-is-not-properly-resumed-in-some-cases branch from 578e914 to 73bdf64 Compare October 17, 2024 06:16
@cromoteca cromoteca changed the base branch from 24.5 to main October 17, 2024 06:16
@cromoteca cromoteca marked this pull request as ready for review October 17, 2024 07:09
Copy link

codecov bot commented Oct 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.66%. Comparing base (f88c7e1) to head (6f7ce41).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2842      +/-   ##
==========================================
+ Coverage   92.58%   92.66%   +0.07%     
==========================================
  Files          83       83              
  Lines        2807     2809       +2     
  Branches      724      724              
==========================================
+ Hits         2599     2603       +4     
+ Misses        156      155       -1     
+ Partials       52       51       -1     
Flag Coverage Δ
unittests 92.66% <100.00%> (+0.07%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

sonarcloud bot commented Oct 18, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

reconnection callback is called twice Flux connection is not properly resumed in some cases
1 participant