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


16
17
18
19
20
# File 'lib/plugins/open_id_authentication/lib/open_id_authentication/timeout_fixes.rb', line 16

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