bfr hangs at EOF when --speedcap is used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bfr (Ubuntu) |
Invalid
|
Low
|
Unassigned | ||
Bug Description
Binary package hint: bfr
This should be easy to reproduce. Just pipe something through bfr and use the --speedcap option. At least on my system, bfr consistently hangs at end of file and doesn't exit.
I analyzed the problem and made a patch already a couple of years ago and sent a patch to the upstream maintainer (Mark Glines). I got no response, so maybe the patch should just be included in Ubuntu?
Here's the analysis: When writing from the buffer catches up with the reading there are zero bytes left in the buffer. This causes `mystate' to be set to RO. Next EOF is read -- at this point bfr should just quit since everything has been written and there is no more input. Instead, at least when --speedcap is used, it will just set state to WO and proceeds to wait forever for something to appear in the buffer.
Changed in bfr: | |
importance: | Undecided → Low |
status: | New → Confirmed |
bfr has been removed from Ubuntu since Karmic. I am therefore going to close this bug. If bfr re-appers at any point and still exhibits this bug, please set the status back to 'New'. Thanks!