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(cu): prevent stuck stream by destroying all and bubbling error #1138

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

TillaTheHun0
Copy link
Member

I think this will finally do it.

For some reason, even pipeline Promise won't resolve if all the underlying streams are destroyed. So this PR uses Promise.race to ensure the error bubbles and ensures all streams are destroyed and all listeners are removed to prevent race conditions.

@TillaTheHun0 TillaTheHun0 merged commit e420c10 into main Feb 5, 2025
3 checks passed
@TillaTheHun0 TillaTheHun0 deleted the tillathehun0/cu-stuck-stream branch February 5, 2025 23:56
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.

1 participant