Class: OpenID::StandardFetcher

Inherits:
Object
  • Object
show all
Defined in:
lib/plugins/open_id_authentication/lib/open_id_authentication/timeout_fixes.rb

Instance Method Summary collapse

Instance Method Details

#make_http(uri) ⇒ Object

Since:

  • 2.0.0



14
15
16
17
18
# File 'lib/plugins/open_id_authentication/lib/open_id_authentication/timeout_fixes.rb', line 14

def make_http(uri)
  http = @proxy.new(uri.host, uri.port)
  http.read_timeout = http.open_timeout = OpenID.timeout_threshold
  http
end