view .svn/pristine/51/51027398ce6a8d3706af5e108b6e6b3b8526c6c3.svn-base @ 1298:4f746d8966dd redmine_2.3_integration

Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author Chris Cannam
date Fri, 14 Jun 2013 09:28:30 +0100
parents cbb26bc654de
children
line wrap: on
line source
# http://trac.openidenabled.com/trac/ticket/156
module OpenID
  @@timeout_threshold = 20

  def self.timeout_threshold
    @@timeout_threshold
  end

  def self.timeout_threshold=(value)
    @@timeout_threshold = value
  end

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