Project

General

Profile

Feature #10361

Support open_timeout option in open-uri

Added by kirs (Kir Shatrov) over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
[ruby-core:65594]

Description

I found it weird that open-uri accepts read_timeout option, but not open_timeout.
I believe this option should be added.


Files

diff.txt (1.04 KB) diff.txt kirs (Kir Shatrov), 10/10/2014 09:46 AM
#1

Updated by Anonymous over 5 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Applied in changeset r47869.


open-uri: accept :open_timeout option

  • lib/open-uri.rb (OpenURI::Options): add :open_timeout default
  • (def OpenURI.open_http): check :open_timeout option
  • (module OpenURI): rdoc for :open_timeout
  • test/open-uri/test_open-uri.rb (test_open_timeout): new test [Feature #10361]

Also available in: Atom PDF