Problem is that cdparanoia has hard coded retry count of 20.
On very badly damaged media cdparanoia retries bad sectors
much too long, I've seen it try a single track for over 12 hours.
If I pass the -Z option,
all retry/jitter fixup logic is disabled (the quality audio is bad).
If I pass the -z 3 option to limit retries,
cdparanoia aborts the rest of the disk at first unreadable sector.
I want something in between, retry a few times and then move along.
Included is a patch to add the --max-retries (-x) option,
which if given limits how many times cdparanoia will retry a bad block.
By setting this to a low value (like -x 3) I can get most audio
from badly damaged disks in much less time than default of 20 retries.
This issue is similar to bug:
#163320 Add timeout to skip when ripping bad tracks
however I include a patch and took a different approach than what
was recommended in that bug. I think a timer based setting as
requested there would also be useful but is much more complicated
than this approach.