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 stream cancelation cancels underlying stream #395

Merged
merged 5 commits into from
Sep 3, 2024

Conversation

nplasterer
Copy link
Contributor

Even after a stream was canceled the underlying stream was still streaming messages which was causing issues.

This officially cancels the stream and improves streams so only the stream messages are streamed once and not streamed when canceled

@nplasterer nplasterer self-assigned this Sep 2, 2024
@nplasterer nplasterer requested a review from a team as a code owner September 2, 2024 01:29
@nplasterer nplasterer marked this pull request as draft September 2, 2024 01:37
@nplasterer
Copy link
Contributor Author

I'm actually getting this error alot in a bunch of random tests

failed: caught error: "ClientError.creationError: LibXMTP.GenericError.Storage(message: "Storage error: Pool error: timed out waiting for connection: Unable to open the database file")"

I don't think it's related to these changes but figured I'd flag it. Wonder if anyone else is seeing these when running the tests in XCode?

@nplasterer nplasterer marked this pull request as ready for review September 2, 2024 20:24
@nplasterer
Copy link
Contributor Author

I'm no longer seeing the double send for messages either. 🎉
So I think that means this is longer an issue
xmtp/libxmtp#1023

@nplasterer nplasterer merged commit bcce4f3 into main Sep 3, 2024
2 checks passed
@nplasterer nplasterer deleted the np/stream-doesnt-cancel-underlying-stream branch September 3, 2024 02:12
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