To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / 51 / 51027398ce6a8d3706af5e108b6e6b3b8526c6c3.svn-base @ 1297:0a574315af3e
History | View | Annotate | Download (416 Bytes)
| 1 |
# http://trac.openidenabled.com/trac/ticket/156 |
|---|---|
| 2 |
module OpenID |
| 3 |
@@timeout_threshold = 20 |
| 4 |
|
| 5 |
def self.timeout_threshold |
| 6 |
@@timeout_threshold |
| 7 |
end |
| 8 |
|
| 9 |
def self.timeout_threshold=(value) |
| 10 |
@@timeout_threshold = value |
| 11 |
end |
| 12 |
|
| 13 |
class StandardFetcher |
| 14 |
def make_http(uri) |
| 15 |
http = @proxy.new(uri.host, uri.port) |
| 16 |
http.read_timeout = http.open_timeout = OpenID.timeout_threshold |
| 17 |
http |
| 18 |
end |
| 19 |
end |
| 20 |
end |