|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-02-10 16:01 UTC] andrei@php.net
[2009-02-10 18:14 UTC] philipp dot feigl at gmail dot com
[2009-02-10 18:17 UTC] andrei@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 05:00:01 2025 UTC |
Description: ------------ I have a setup with 2 memcached servers. Both listening to differnt ports (11223 and 11224 in my case). As long as both are running, everything seems to work as expected and gets cached against the first server. If I just shutdown the first memcached, nothing gets cached at all. While the script does not indicate any failures, no cache requests arrive and the second server. I've also installed the (old) memcache pecl extension on the client machine and when using the same code just with the Memcache object instead of the Memcached object, everything works as expected. Something to know is, that I'm not using memcache but repcached. However the interfaces (and even the core code) is the very same, so this should not have any impace on the scenario. It simply looks like Memcached is not trying to connect to the 2nd server after the connection to the first one fails Reproduce code: --------------- <?php $c = new Memcached(); $c->addServer('192.168.122.3', 11223); $c->addServer('192.168.122.2', 11224); $c->set('a', 'abc12'); ?> Expected result: ---------------- <11 new client connection <11 set a 0 0 5 >11 STORED <11 quit <11 connection closed. Actual result: -------------- no connection is established at all onto the 2nd server