php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58601 Binary mode leads to network timeout
Submitted: 2009-03-27 05:50 UTC Modified: 2013-10-10 06:48 UTC
From: patric at zap dot lu Assigned: pajoye (profile)
Status: Closed Package: memcache (PECL)
PHP Version: 5.3.0RC1 OS: Debian Lenny
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: patric at zap dot lu
New email:
PHP Version: OS:

 

 [2009-03-27 05:50 UTC] patric at zap dot lu
Description:
------------
I get the following notice with version 3.0.4 and memcached version 1.3.2:

Notice: MemcachePool::get(): Server 10.1.0.1 (tcp 11211, udp 0) failed with: Network timeout (0) in /blade/site/framework/modules/scaler.class on line 83

Unsure if it is a memcache Daemon or client issue.


Reproduce code:
---------------
//- binary mode not working --------
ini_set('memcache.protocol', 'binary');
$m = new MemcachePool;
$m->connect('10.1.0.1');
$result = $m->get('CLUSTERINFO');
/*
 Produces: 
Notice: MemcachePool::get(): Server 10.1.0.1 (tcp 11211, udp 0) failed with: Network timeout (0) in /blade/site/framework/modules/scaler.class on line 83
 $result is false */

//--asci mode working ----------------
ini_set('memcache.protocol', 'ascii');
$m = new MemcachePool;
$m->connect('10.1.0.1');
$result = $m->get('CLUSTERINFO');

/* $result contains the valid data */


Expected result:
----------------
Get the value from the server in binary without fallback to ascii


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-04-13 01:30 UTC] marcus at onlab dot org
I try this too and I had same problem with module 3.0.4 and memcached 1.3.3 and module 3.0.1 and memcached 1.2.4 when using binary mode.
 [2009-07-20 05:47 UTC] andreas dot pankratz at s dot square-group dot de
Same here:

Centos 5.2 i386
memcached 1.4.0
PHP 5.2.6
php-pecl-memcache 3.0.4



Notice: MemcachePool::get() [memcachepool.get]: Server 127.0.0.1 (tcp 11211, udp 0) failed with: Network timeout (0) in /home/webmgmt/library/Zend/Cache/Backend/Memcached.php on line 179
 [2009-09-03 18:24 UTC] noodles at planetslackers dot com
I get this too, 
CentOS 5.3
PHP 5.2.10
PECL Memcache 3.0.4
Memcache 1.4.1

When I switch back to the ascii protocol it fixes the problem.
 [2009-12-04 15:55 UTC] mvenezia at gmail dot com
Has anyone figured out a solution to this?  I get the same problem.
 [2010-03-25 05:10 UTC] pierre dot php at gmail dot com
memcache does not support the binary protocol. We plan to add it in the next months.
 [2013-10-10 06:48 UTC] pajoye@php.net
fixed in 3.x
 [2013-10-10 06:48 UTC] pajoye@php.net
-Status: Assigned +Status: Closed
 [2015-01-08 08:53 UTC] anthonyryan1 at gmail dot com
I'm still seeing this with MemcachePool from the 3.0.8 extension when setting memcache.protocol=binary in my php.ini. Has this actually been fixed?
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 13:01:33 2025 UTC