Doc: Clarification on allowed timeout values
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.
- lib/timeout.rb: Clarify timeout duration types. Patch by Alf Mikula.
[Ruby 1.9 - Bug #4791]
- lib/net/http.rb: ditto
#1 Updated by Eric Hodel over 4 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100