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] [EMAIL PROTECTED]

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

Reply via email to