Project

General

Profile

Actions

Feature #10361

closed

Support open_timeout option in open-uri

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

Status:
Closed
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
Actions #1

Updated by Anonymous over 9 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]
Actions

Also available in: Atom PDF

Like0
Like0