#40401 [Bgs]: Wrong parameter description in Memcache::connect
| From: | timo dot witte at kwick dot de | Date: | Thu, 08 Feb 2007 13:08:16 +0000 |
| Subject: | #40401 [Bgs]: Wrong parameter description in Memcache::connect | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969375382@lists.php.net to get a copy of this message | ||
ID: 40401
User updated by: timo dot witte at kwick dot de
Reported By: timo dot witte at kwick dot de
Status: Bogus
Bug Type: Documentation problem
Operating System: Linux 2.6
PHP Version: Irrelevant
New Comment:
Oh sorry i just asked my Boss, he has changed the timeout from seconds
to mircroseconds in the client libary :-( so that´s no bug at all.. sry
Previous Comments:
------------------------------------------------------------------------
[2007-02-08 12:50:12] tony2001@php.net
No, it's indeed seconds.
But the timeout is not used if the host is down, rejects the connection
and in any other situation when your system's select() fails right away.
------------------------------------------------------------------------
[2007-02-08 12:44:19] timo dot witte at kwick dot de
Description:
------------
Memcache::connect
The timeout Parameter is NOT in seconds but in microseconds!
Reproduce code:
---------------
$mc = new Memcache;
$mc->connect("someremotememcache", 11211, 1);
Expected result:
----------------
$mc should be connected
Actual result:
--------------
$mc returns with connection timed out instantly (not after a second but
a microsecond)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40401&edit=1