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: resume client to server communication after web socket reconnection (#20283) (CP: 24.5) #20423

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

vaadin-bot
Copy link
Collaborator

No description provided.

…ion (#20283)

* fix: resume client to server communication after web socket reconnection

When a websocket PUSH connection is closed and re-established because
of a network failure, the RequestResponseTracker.hasActiveRequest is
not reset, prenvint the Flow client to send additional messages to
the server.
This change will reset the flag on reconnection. It also will track
unsent PUSH message over websocket, to retry the delivery once the
connection is re-established, preventing client resynchronization.
In addition, it sets a default value of 12 for the Atmospehere
maxWebsocketErrorRetries setting, to ensure that the Flow client will
attempt to reconnect with web socket transport several times, instead
of immediately downgrade to long-polling after first failed connection.

Fixes #20213

* upgrade to atmosphere javascript 4.0.1 with reconnection fixes

---------

Co-authored-by: Mikhail Shabarov <61410877+mshabarov@users.noreply.github.com>
Copy link

sonarcloud bot commented Nov 7, 2024

@vaadin-bot
Copy link
Collaborator Author

This PR is eligible for auto-merging policy, so it has been approved automatically. If there are pending conditions, auto merge (with 'squash' method) has been enabled for this PR[Message is sent from bot]

@vaadin-bot vaadin-bot enabled auto-merge (squash) November 7, 2024 09:24
Copy link

github-actions bot commented Nov 7, 2024

Test Results

1 142 files  ±0  1 142 suites  ±0   1h 26m 13s ⏱️ +39s
7 469 tests ±0  7 419 ✅ ±0  50 💤 ±0  0 ❌ ±0 
7 842 runs  +9  7 782 ✅ +9  60 💤 ±0  0 ❌ ±0 

Results for commit 9001177. ± Comparison against base commit 5d8f025.

@vaadin-bot vaadin-bot merged commit febbb85 into 24.5 Nov 7, 2024
25 of 26 checks passed
@vaadin-bot vaadin-bot deleted the cherry-pick-20283-to-24.5-1730970796448 branch November 7, 2024 09:29
@vaadin-bot
Copy link
Collaborator Author

This ticket/PR has been released with Vaadin 24.5.4.

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.

3 participants