Reduce connect timeout in MediaWiki::triggerJobs
authorErik Bernhardson <ebernhardson@wikimedia.org>
Tue, 25 Mar 2014 22:31:56 +0000 (15:31 -0700)
committerErik Bernhardson <ebernhardson@wikimedia.org>
Tue, 25 Mar 2014 22:31:56 +0000 (15:31 -0700)
commit6f65ab9a22881c73ce9f7b6b7cf54445e80fdb55
treed2fd94ebf97054770c47965f40395f85ed47c0eb
parent9271c73045c3334507a387621135fec820d44292
Reduce connect timeout in MediaWiki::triggerJobs

The fifth parameter to fsockopen is the number of seconds
to wait before declaring the connection a failure. When not
provided it defaults to the php ini value of 'default_socket_timeout'
which is 60s.  Under no circumstances should we wait 60s to
connect to ourselves,  100ms seems like a reasonable timeout
since its explicitly connecting to itself, but the exact timeout
could be slightly longer.

Change-Id: I18d328274ddf1e0848fce40ebf39e0466b5c4d5d
includes/Wiki.php