Skip to content

sources/channel: Send Closed for SendSender, not only Sender; fix possible race#236

Merged
notgull merged 2 commits intoSmithay:masterfrom
ids1024:channel
Feb 13, 2026
Merged

sources/channel: Send Closed for SendSender, not only Sender; fix possible race#236
notgull merged 2 commits intoSmithay:masterfrom
ids1024:channel

Conversation

@ids1024
Copy link
Member

@ids1024 ids1024 commented Dec 17, 2025

No description provided.

ids1024 added a commit to ids1024/smithay that referenced this pull request Dec 17, 2025
`SyncSender` isn't properly sending `Closed`:
Smithay/calloop#236

In any case, using `Sender` seems appropriate if we don't need it to be
`Sync`.
ids1024 added a commit to ids1024/smithay that referenced this pull request Dec 29, 2025
`SyncSender` isn't properly sending `Closed`:
Smithay/calloop#236

In any case, using `Sender` seems appropriate if we don't need it to be
`Sync`.
Drakulix pushed a commit to Smithay/smithay that referenced this pull request Dec 30, 2025
`SyncSender` isn't properly sending `Closed`:
Smithay/calloop#236

In any case, using `Sender` seems appropriate if we don't need it to be
`Sync`.
@notgull
Copy link
Member

notgull commented Feb 13, 2026

@ids1024 Can you rebase on master?

I believe previous there is a theoretically possible race, since the
`.ping()` call would have happened before the `mpsc::Sender` was
dropped.
Presumably this should behave like `Sender`, but only ping once all
clones have been dropped. This should achieve that.
@codecov
Copy link

codecov bot commented Feb 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.20%. Comparing base (327c073) to head (a885a07).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #236      +/-   ##
==========================================
+ Coverage   85.45%   86.20%   +0.74%     
==========================================
  Files          14       16       +2     
  Lines        1815     2000     +185     
==========================================
+ Hits         1551     1724     +173     
- Misses        264      276      +12     
Flag Coverage Δ
macos-latest 85.51% <100.00%> (?)
ubuntu-latest 85.78% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ids1024
Copy link
Member Author

ids1024 commented Feb 13, 2026

Rebased, and now passing CI.

@ids1024 ids1024 mentioned this pull request Feb 13, 2026
@notgull notgull merged commit 7ec73f4 into Smithay:master Feb 13, 2026
12 checks passed
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