projects
/
quix0rs-gnu-social.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de13c48
)
Ticket 2048: make OMB posting HTTP timeout configurable as $config['omb']['timeout...
author
Brion Vibber
<brion@pobox.com>
Tue, 1 Dec 2009 22:38:34 +0000
(14:38 -0800)
committer
Brion Vibber
<brion@pobox.com>
Tue, 1 Dec 2009 22:53:27 +0000
(14:53 -0800)
lib/default.php
patch
|
blob
|
history
lib/omb.php
patch
|
blob
|
history
diff --git
a/lib/default.php
b/lib/default.php
index 95366e0b329e965cc1fb7393e1e06a2fdd2b0d0a..d4ef045ea501c66a678ead061b343b4c5aafba58 100644
(file)
--- a/
lib/default.php
+++ b/
lib/default.php
@@
-226,4
+226,6
@@
$default =
array('contentlimit' => null),
'location' =>
array('namespace' => 1), // 1 = geonames, 2 = Yahoo Where on Earth
+ 'omb' =>
+ array('timeout' => 5), // HTTP request timeout in seconds when contacting remote hosts for OMB updates
);
diff --git
a/lib/omb.php
b/lib/omb.php
index e2a6d9f3f529f6004ef51c3846ad68a1b31143a6..0f38a49369fc34c8de680a0b5fe90236c65fe161 100644
(file)
--- a/
lib/omb.php
+++ b/
lib/omb.php
@@
-167,6
+167,7
@@
class StatusNet_OMB_Service_Consumer extends OMB_Service_Consumer {
$this->datastore = omb_oauth_datastore();
$this->oauth_consumer = omb_oauth_consumer();
$this->fetcher = Auth_Yadis_Yadis::getHTTPFetcher();
+ $this->fetcher->timeout = intval(common_config('omb', 'timeout'));
}
}