dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Reduce connect timeout in MediaWiki::triggerJobs
[lhc/web/wiklou.git]
/
includes
/
Wiki.php
diff --git
a/includes/Wiki.php
b/includes/Wiki.php
index
4bf8fd3
..
6cf718c
100644
(file)
--- a/
includes/Wiki.php
+++ b/
includes/Wiki.php
@@
-655,7
+655,10
@@
class MediaWiki {
$info['host'],
isset( $info['port'] ) ? $info['port'] : 80,
$errno,
- $errstr
+ $errstr,
+ // If it takes more than 100ms to connect to ourselves there
+ // is a problem elsewhere.
+ 0.1
);
wfRestoreWarnings();
if ( !$sock ) {