wsutil ExecReaderToChannel drops buffered output on HUP-only events
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- go
- Domain
- operating-systems
Research direction
Start at the Linux reader loop in ExecReaderToChannel and trace how POLLHUP/POLLRDHUP events are handled after a partial read. Add coverage for a HUP-only event with buffered output, and consider the issue done when pending bytes are flushed before the loop returns.
Written by the indexing model from the issue text.
Description
In the Linux reader loop, a POLLHUP/POLLRDHUP event without POLLIN returns before flushing an already accumulated partial buffer. A prior read can leave offset > 0 when the buffer is larger than the data available; the subsequent HUP-only event then discards those bytes. The HUP path should flush pending output before returning.
- Dominant language
- Go
- Stars
- 207
- Forks
- 80
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 23
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from canonical/pebble
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
All issues in canonical/pebble
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
kind/cleanup
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
kubernetes-sigs/kueue#15947 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100