[Yum-devel] RFC: Make keyboard interupt timeout bigger

seth vidal skvidal at fedoraproject.org
Wed Nov 21 05:07:34 UTC 2007


On Tue, 2007-11-20 at 23:30 -0500, James Antill wrote:
> So we've been getting a few BZ/comments in Fedora on and off about how
> it's "hard" to C-c yum, even after the rpm/yum fix. The currently open
> one being:
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=358391
> 
> ...I think I've found the "problem" and an obvious solution, currently
> yum uses a 0.2 second timeout and at least in certain situations that
> isn't enough. With a manual change to make this say a 5 second timeout
> it is still very unlikely to be done by accident and should cover any
> sane latency edge cases.
>  Of course testing this isn't easy, for instance running multiple python
> -c 'while True: pass' and/or dd if=/dev/zero of=/tmp/abcd didn't seem to
> trigger the problem for me (Ie. I could still exit with a 0.2 second
> timeout). So I'm going mostly from the data I captured in one case where
> it wasn't working and I had debug data (comment #14 in above BZ), and I
> just took the longest latency there and doubled it to get 5 seconds.
> 
>  Anyone have any violent reactions to upping the timeout?
>  Anyone want a bigger/smaller timeout than 5 seconds?

your analysis makes sense but I don't know why to go all the way up to 5
seconds. Given the numbers you're hitting back it seems like 1 or 2
seconds would be enough.

-sv





More information about the Yum-devel mailing list