+
Skip to content

Conversation

GheisMohammadi
Copy link
Collaborator

@GheisMohammadi GheisMohammadi commented May 13, 2025

This PR refines the sync protocol’s stream handling to improve stability and responsiveness. Read deadlines are now applied to prevent blocking, with internal config support for tuning. The stream exits loops immediately on closeC signal, and locks have been refactored for better concurrency.

To avoid confusion with the standard library, the stream type is renamed to sync_stream. Recoverable errors like timeouts or network hiccups no longer trigger cooldowns or full resets, while critical errors are still handled with proper recovery logic. These changes reduce unnecessary disruptions and improve sync reliability.

@GheisMohammadi GheisMohammadi self-assigned this May 13, 2025
@GheisMohammadi GheisMohammadi changed the title Improve Stream Handling, Avoid Stream Restart on Recoverable Failures Improve Stream Handling, Avoid Stream Reset on Recoverable Failures May 13, 2025
@GheisMohammadi GheisMohammadi marked this pull request as draft May 13, 2025 12:41
@GheisMohammadi GheisMohammadi marked this pull request as ready for review May 14, 2025 13:46
@GheisMohammadi GheisMohammadi merged commit afef685 into dev May 21, 2025
3 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

Development

Successfully merging this pull request may close these issues.

3 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载