RESTBagOStuff: improve timeouts and logging
authorTim Starling <tstarling@wikimedia.org>
Fri, 15 Jun 2018 11:06:40 +0000 (21:06 +1000)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 21 Jun 2018 09:34:02 +0000 (09:34 +0000)
commitc21daeebe01298889b4a95ee212368ec784acf6c
treeb132c90790285042f103fc83890f93530abd365c
parentbd8cd912a7ff9422a437468a4b8fec4cf7d5234f
RESTBagOStuff: improve timeouts and logging

* Provide a sensible default for the HTTP timeout, and make it configurable.
* Also make HTTP proxy and caBundlePath configurable.
* Pass through the logger object to the HTTP client, as in EtcdConfig.
* Do not treat a 404 response code for DELETE or 204 for PUT as errors. The
  doc comment already said that delete() should return true if the item
  was not found.

Change-Id: I6a90a25339c3a433381a5300c8c7c1a644e2a10f
includes/libs/objectcache/RESTBagOStuff.php