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

Use ClientSnapshot in the export table, rather than Client #520

Merged
merged 4 commits into from
Jun 17, 2023

Conversation

zenhack
Copy link
Contributor

@zenhack zenhack commented May 26, 2023

This also tweaks the leak reporting to also check snapshots.

...instead of a Client. This is a step towards addressing the tribble
4-way race condition. Currently there are some test failures.
The call to waitRef.Release() in export.go was resolving the receiver
too soon, resulting in a leak.
@zenhack zenhack requested a review from lthibault May 26, 2023 21:57
@zenhack
Copy link
Contributor Author

zenhack commented May 26, 2023

We will probably also need to do something with capnp.Promise/answers, but this is at least half of solving the 4-way race.

@zenhack
Copy link
Contributor Author

zenhack commented Jun 16, 2023

I merged master back in, which should fix the CI failure. Test suite passes 1000 times in a row locally.

@zenhack zenhack merged commit b6db31e into capnproto:main Jun 17, 2023
0 of 4 checks passed
@zenhack zenhack deleted the export-snapshot branch June 17, 2023 01:14
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.

2 participants