Project

General

Profile

Actions

Bug #4791

closed

Doc: Clarification on allowed timeout values

Added by amikula (Alf Mikula) almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.3dev (2011-05-11 trunk 31504) [x86_64-darwin10.7.0]
Backport:
[ruby-core:36519]

Description

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.


Files

Actions

Also available in: Atom PDF

Like0
Like0