Improve timeouts in MultiHttpClient
authorTim Starling <tstarling@wikimedia.org>
Fri, 15 Jun 2018 10:31:02 +0000 (20:31 +1000)
committerTim Starling <tstarling@wikimedia.org>
Fri, 15 Jun 2018 11:04:05 +0000 (21:04 +1000)
commit792dc3c74a01174ee7ce650be2ae09ad9d65f9c2
treee718d096cfe3d20b88eded128568fa005122451b
parentf7212f5f298a179a7a4bab8c9d9ee727f6e81008
Improve timeouts in MultiHttpClient

* PHP 7 only checks for request/connection timeout after the timeout
  passed to curl_multi_select() expires. So it's necessary to use a
  select timeout which is much shorter than 10s. I filed
  https://bugs.php.net/bug.php?id=76480 for this.
* Use millisecond resolution timeout parameters. These have been
  available since libcurl 7.16.2, released Jan 2008, available in
  Debian 7, Ubuntu 14.04 and CentOS 6.

Change-Id: Ia07b824dde179b33e14b81a76d580ce547bca315
includes/libs/MultiHttpClient.php