-
Notifications
You must be signed in to change notification settings - Fork 886
(v1-1/3) tea.go: fix deadlock on context cancellation #1372
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
base: main
Are you sure you want to change the base?
Conversation
Great find @desertwitch! Could you add a test case covering this? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1372 +/- ##
=======================================
Coverage ? 69.25%
=======================================
Files ? 17
Lines ? 1698
Branches ? 0
=======================================
Hits ? 1176
Misses ? 474
Partials ? 48 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Sure - I've added the tests, also squashed and reworded my commits to follow the message convention. 😉 P.S. This resolves the symptom of a program getting stuck on context cancellation from "within" (a model's methods). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome, thank you!
closes #1292 |
fixes #1370
closes #1292
context cancellation causes immediate exit of channel receiving routine handleCommands
select statement wrap prevents deadlocks on eventLoop sends to stale channel and ensures routine exit