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.4) #20424

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 <[email protected]>
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:25
Copy link

github-actions bot commented Nov 7, 2024

Test Results

1 114 files  ± 0  1 114 suites  ±0   1h 19m 34s ⏱️ - 2m 7s
7 083 tests ± 0  7 034 ✅ ± 0  49 💤 ±0  0 ❌ ±0 
7 451 runs  +48  7 390 ✅ +48  61 💤 ±0  0 ❌ ±0 

Results for commit 487d212. ± Comparison against base commit a57e94d.

@vaadin-bot vaadin-bot merged commit 36c0f2e into 24.4 Nov 7, 2024
25 of 26 checks passed
@vaadin-bot vaadin-bot deleted the cherry-pick-20283-to-24.4-1730970809383 branch November 7, 2024 09:29
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