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: preserve push messages in cache until they are seen by client (#15764) (CP: 23.2) #15820

Merged
merged 1 commit into from
Feb 3, 2023

Conversation

vaadin-bot
Copy link
Collaborator

No description provided.

…15764)

Atmospehere caches messages when the client is disconnected, but unfortunately it may happen that a message does not reach the client because of network disconnection during async response write operation. In this case the message is not cached and will be completely lost, causing a UI resynchronization request.
This change preserves messages in broadcaster cache until the client confirms that they have been processed, by sending the last seen server sync identifier on reconnection.
This should prevent the need for a UI resynchronization. It may happen in some cases, e.g. back to online after being offline, that messages already seen will be sent to the client, but Flow will discard them.

Part of #15281
Fixes #15205

Co-authored-by: Teppo Kurki <teppo.kurki@vaadin.com>
@sonarcloud
Copy link

sonarcloud bot commented Feb 3, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions
Copy link

github-actions bot commented Feb 3, 2023

Test Results

   934 files  +1     934 suites  +1   58m 18s ⏱️ -14s
6 089 tests +5  6 035 ✔️ +5  54 💤 ±0  0 ±0 
6 322 runs  +6  6 261 ✔️ +6  61 💤 ±0  0 ±0 

Results for commit 775671c. ± Comparison against base commit 269b853.

@mcollovati mcollovati merged commit a3c4cea into 23.2 Feb 3, 2023
@mcollovati mcollovati deleted the cherry-pick-15764-to-23.2-1675449185588 branch February 3, 2023 20:30
@vaadin-bot
Copy link
Collaborator Author

This ticket/PR has been released with Vaadin 23.2.16.

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

Successfully merging this pull request may close these issues.

2 participants