r88131 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r88130‎ | r88131 | r88132 >
Date:00:45, 15 May 2011
Author:platonides
Status:deferred
Tags:
Comment:
(Bug 9399) - MogileFS.php client halts for 1 second after PUT call waiting for the Server ok
Commiting the line provided 4 years ago.
Modified paths:
  • /trunk/extensions/MogileClient/MogileFS.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MogileClient/MogileFS.php
@@ -256,7 +256,8 @@
257257 curl_setopt($ch,CURLOPT_INFILE, $fin);
258258 curl_setopt($ch,CURLOPT_INFILESIZE, filesize($filename));
259259 curl_setopt($ch,CURLOPT_TIMEOUT, 4);
260 - curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 260+ curl_setopt($ch,CURLOPT_RETURNTRANSFER, true);
 261+ curl_setopt($ch,CURLOPT_HTTPHEADER, array('Expect: '));
261262 if(!curl_exec($ch)) {
262263 $this->error=curl_error($ch);
263264 curl_close($ch);

Status & tagging log