From: "zw963 (Wei Zheng)" Date: 2021-12-01T12:28:45+00:00 Subject: [ruby-core:106358] [Ruby master Bug#18375] Timeout.timeout(sec, klass: MyExceptionClass) can not retry correctly. Issue #18375 has been reported by zw963 (Wei Zheng). ---------------------------------------- Bug #18375: Timeout.timeout(sec, klass: MyExceptionClass) can not retry correctly. https://bugs.ruby-lang.org/issues/18375 * Author: zw963 (Wei Zheng) * Status: Open * Priority: Normal * ruby -v: 3.0.3 * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- Following is a example for describe this issue. ```rb class DelayError < Exception end Timeout.timeout(2, DelayError) do |arg| puts 'start' sleep 10 rescue DelayError puts '*'*10 retry end ``` Will output ``` start ********** start ``` What i expected is: ``` start ********** start ********** start ********** ... ``` -- https://bugs.ruby-lang.org/ Unsubscribe: