Improve some timeout docs
authoraddshore <addshorewiki@gmail.com>
Fri, 25 Aug 2017 10:02:04 +0000 (13:02 +0300)
committeraddshore <addshorewiki@gmail.com>
Fri, 25 Aug 2017 10:02:04 +0000 (13:02 +0300)
Change-Id: I799ea1e647d4d67a3c7d0e8dfddff893aef32736

includes/DefaultSettings.php
includes/http/MWHttpRequest.php

index 610df45..1f3b5e3 100644 (file)
@@ -755,6 +755,8 @@ $wgCopyUploadProxy = false;
  * timeout longer than the default $wgHTTPTimeout. False means fallback
  * to default.
  *
+ * @var int|bool
+ *
  * @since 1.22
  */
 $wgCopyUploadTimeout = false;
@@ -8279,6 +8281,7 @@ $wgShellLocale = 'C.UTF-8';
 
 /**
  * Timeout for HTTP requests done internally, in seconds.
+ * @var int
  */
 $wgHTTPTimeout = 25;
 
index 88cc510..0f0118c 100644 (file)
@@ -33,8 +33,12 @@ use Psr\Log\NullLogger;
 class MWHttpRequest implements LoggerAwareInterface {
        const SUPPORTS_FILE_POSTS = false;
 
-       protected $content;
+       /**
+        * @var int|string
+        */
        protected $timeout = 'default';
+
+       protected $content;
        protected $headersOnly = null;
        protected $postData = null;
        protected $proxy = null;