General

Profile

astratto (Stefano Tortarolo)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 0 1

Activity

07/15/2015

04:59 PM Ruby Misc #11355 (Open): Exceptions inheriting from Timeout::Error should behave the same way
Bug #8730 addressed a common issue when using Timeout#timeout [*], but I think that the current behaviour is at the very least surprising.
Right now, exceptions provided to Timeout#timeout are rescuable from the inner block and that a...
astratto (Stefano Tortarolo)
04:11 PM Ruby Bug #9115: Logger traps all exceptions; breaks Timeout
Correction: providing an exception to Timeout#timeout would break it also in trunk.
It seems that by design inner blocks are able to rescue the exception provided to that method.
astratto (Stefano Tortarolo)

07/10/2015

03:36 PM Ruby Bug #9115: Logger traps all exceptions; breaks Timeout
I confirm that this bug is reproducible up to 2.2 and it's pretty easy to trigger.
~~~
require 'timeout'
require 'logger'
class MyExc < RuntimeError; end
def long_call(logger)
Timeout.timeout(3, MyExc) do
a = 1
lo...
astratto (Stefano Tortarolo)

Also available in: Atom