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
SuspendCallbacks can leak #828
Comments
I traced through and learned what’s happening:
I’m gonna fix #826 first, which will prevent that untimely suspension. One other gotcha here: the outbound side does receive the |
I found a similar issue with using Flows generally - it seems that both Running the sample prints some leaks. Using the debugger, we can see that these were |
I expect it’s likely the same issue. Could I talk you into contributing a test case? |
Sure, will take a look. 👍 |
Added a test in #850, though I'm not sure that this is really the same issue anymore. Or maybe it is, and nothing is really leaking. Let me know what you think. |
Confirmed fixed by the |
I’ve got a Redwood application that creates and cancels flows, and in some situations I’ve got
SuspendCallback
objects that never get called back, and never get canceled. I suspect it’s a book-keeping issue with ZiplineScope, possibly exacerbated by our flows.I’m able to create this leak by creating and closing services. The leaked callback is tracked in
Endpoint.inboundServices
; here’s a sample.The text was updated successfully, but these errors were encountered: