r84319 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84318‎ | r84319 | r84320 >
Date:12:11, 19 March 2011
Author:tstarling
Status:ok
Tags:
Comment:
MFT r84317: fix read timeout
Modified paths:
  • /branches/wmf/1.17wmf1/extensions/PoolCounter/PoolCounterClient_body.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/extensions/PoolCounter/PoolCounterClient_body.php
@@ -82,6 +82,10 @@
8383 return $status;
8484 }
8585 $this->conn = $status->value;
 86+
 87+ // Set the read timeout to be 1.5 times the pool timeout.
 88+ // This allows the server to time out gracefully before we give up on it.
 89+ stream_set_timeout( $this->conn, 0, $this->timeout * 1e6 * 1.5 );
8690 }
8791 return Status::newGood( $this->conn );
8892 }
Property changes on: branches/wmf/1.17wmf1/extensions/PoolCounter/PoolCounterClient_body.php
___________________________________________________________________
Modified: svn:mergeinfo
8993 Merged /trunk/extensions/PoolCounter/PoolCounterClient_body.php:r84317

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r84317Use stream_set_timeout() to avoid a socket timeout before the pool timeout oc...tstarling12:07, 19 March 2011

Status & tagging log