From: Tanaka Akira Date: 2008-03-25T19:33:55+09:00 Subject: Re: Thread#raise, Thread#kill, and timeout.rb are unsafe In article <5ec9772607938ba6d0665ce1905904eb@localhost>, MenTaLguY writes: > I think I agree. However, that still leaves us with timeouts, which > are sometimes done for operations that will be retried in the future, > so data loss is not acceptable there. For net/http, data loss is not big problem because timeouted request is not resumed. The timeout terminates the http request. I'm not sure your assumption. If an operation will be resumed later, why the operation needs timeout? What a task should be done between the timeout and the resuming? Why the task should not be done in another thread? > Won't we also need to augment the existing stdlib APIs to allow the > specification of timeouts for any blocking operations that can't > already be done with non-blocking and select? It is reasonable, I think. -- Tanaka Akira