From: Alf Mikula Date: 2011-05-28T08:22:51+09:00 Subject: [ruby-core:36519] [Ruby 1.9 - Bug #4791][Open] Doc: Clarification on allowed timeout values Issue #4791 has been reported by Alf Mikula. ---------------------------------------- Bug #4791: Doc: Clarification on allowed timeout values http://redmine.ruby-lang.org/issues/4791 Author: Alf Mikula Status: Open Priority: Normal Assignee: Eric Hodel Category: DOC Target version: 1.9.3 ruby -v: ruby 1.9.3dev (2011-05-11 trunk 31504) [x86_64-darwin10.7.0] This patch clarifies what is an acceptable timeout value in Net::HTTP and Timeout::timeout. The existing documentation does not clearly indicate that fractional seconds may be specified, leaving the reader to guess whether only integer values or float values are allowed. Ultimately, Kernel::sleep is called, which accepts any number. -- http://redmine.ruby-lang.org