-
Notifications
You must be signed in to change notification settings - Fork 4
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
Context based cancellation of acquiring a session #164
Conversation
Thanks -- implemented in 04317ef |
Does 04317ef fix the problem? It looks like it still blocks if the context is cancelled while reconnecting to the host: 04317ef#r49426524. |
Ah, you're right, my bad. I don't think there's a very clean way of adding |
Okay, think I fixed it in 4c410b4. The behavior is not ideal; the host can remain locked even after ctx is canceled. But it's the best we can do without plumbing ctx through a bunch of other code. |
I'm afraid it won't work because if |
|
oof. Yeah. Clearly I didn't think this through deeply enough. Your implementation was fine after all, so I'm just going to revert to that. Sorry about that. |
I think there's still a race:
Will have to think a bit more about this. |
d23ebc4 should fix the race. 🤞🏻
|
Thanks for fixing it! But, we have to avoid result parameters because it causes data races:
|
More precisely, both L30 and L44 can update |
oh yeah, I forgot that technically a |
This PR fixes the issue #106 (comment).