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

Improve the reliability of SSEStream. #555

Merged
merged 7 commits into from
Nov 8, 2023

Conversation

overcat
Copy link
Member

@overcat overcat commented Nov 7, 2023

fix #463, fix #432, fix #210.

Restart SSE to improve reliability if no new messages are received within the timeout period.

@overcat overcat changed the title Improve the reliability of SSE. Improve the reliability of SSEStream. Nov 7, 2023
@overcat overcat marked this pull request as draft November 7, 2023 14:32
@overcat overcat marked this pull request as ready for review November 7, 2023 14:34
// Start a timer to check if the client has not received any event for a long time.
// If so, we will close the connection and restart it.
latestEventTime.set(System.currentTimeMillis());
clientTimeoutTimer.scheduleAtFixedRate(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! changed.

@overcat overcat merged commit a105cf0 into lightsail-network:master Nov 8, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants