Skip to content

Prevent double continuation resumption in client #113

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

Merged
merged 2 commits into from
May 26, 2025

Conversation

mattt
Copy link
Contributor

@mattt mattt commented May 12, 2025

This PR fixes a race condition in the MCP client where request continuations could be resumed twice during network failures, causing "SWIFT TASK CONTINUATION MISUSE" crashes.

@mattt mattt marked this pull request as draft May 12, 2025 10:39
@mattt mattt marked this pull request as ready for review May 26, 2025 11:16
Consolidate request removal and continuation resumption logic to ensure each request's continuation is resumed exactly once, preventing "SWIFT TASK CONTINUATION MISUSE" errors during network failures.
@mattt mattt force-pushed the mattt/fix-continuation-misuse branch from 6892034 to 14bb443 Compare May 26, 2025 11:27

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@mattt mattt merged commit fec680a into main May 26, 2025
6 checks passed
@mattt mattt deleted the mattt/fix-continuation-misuse branch May 26, 2025 11:36
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.

None yet

1 participant