From: Eric Hodel Date: 2006-02-07T16:42:02+09:00 Subject: Re: Timeout On Feb 6, 2006, at 11:18 PM, eastcoastcoder@gmail.com wrote: > Does Ruby's Timeout know about time spent outside of Ruby's > interpreter? Did you try it? It is really, really easy, especially with irb. > For instance, will it call Timeout in the model of long syscalls (ie, > blocking io which is taking too long). require 'timeout' require 'socket' s = TCPSocket.new 'localhost', 80 Timeout.timeout 5 do s.read end -- Eric Hodel - drbrain@segment7.net - http://segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com