In article <20040814.051615.28808521.gotoyuzo / sawara.does.notwork.org>,
  GOTOU Yuuzou <gotoyuzo / notwork.org> writes:

> --- lib/net/protocol.rb	10 May 2004 13:28:26 -0000	1.77
> +++ lib/net/protocol.rb	13 Aug 2004 20:11:36 -0000
> @@ -129,7 +129,8 @@     def readline
>      private
>  
>      def rbuf_fill
> -      until IO.select([@io], nil, nil, @read_timeout)
> +      unless @io.respond_to?(:wait) ? @io.wait(@read_timeout) :
> +               IO.select([@io], nil, nil, @read_timeout)
>          raise TimeoutError, "socket read timeout (#{@read_timeout} sec)"
>        end
>        @rbuf << @io.sysread(1024)

ちょっとした疑問ですが、

  timeout(@read_timeout) {
    @rbuf << @io.sysread(1024)
  }

ではいけないのでしょうか?
-- 
[田中 哲][たなか あきら][Tanaka Akira]