php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58207 send of 32768 bytes failed with errno=11 Resource temporarily unavailable
Submitted: 2008-06-02 05:05 UTC Modified: 2008-09-11 16:07 UTC
From: paulgao at yeah dot net Assigned:
Status: Closed Package: memcache (PECL)
PHP Version: 5.2.5 OS: Slackware
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: paulgao at yeah dot net
New email:
PHP Version: OS:

 

 [2008-06-02 05:05 UTC] paulgao at yeah dot net
Description:
------------
Notice: memcache_set(): send of 32768 bytes failed with errno=11 Resource temporarily unavailable in /root/memcached.php on line 6

Reproduce code:
---------------
<?php

$data = str_repeat('a', 64 * 1024);

$mc = memcache_connect('192.168.0.3', 7380);
var_dump(memcache_set($mc, 'memcache_test', $data, 0, 600));

echo strlen(memcache_get($mc, 'memcache_test'));

?>

Expected result:
----------------
bool(true)
65536

Actual result:
--------------
Notice: memcache_set(): send of 32768 bytes failed with errno=11 Resource temporarily unavailable in /root/memcached.php on line 6

Call Stack:
    0.0016      56084   1. {main}() /root/memcached.php:0
    0.0024     136952   2. memcache_set(class Memcache, string(13), string(65536), long, long) /root/memcached.php:6

bool(true)
65536

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-06-02 06:15 UTC] paulgao at yeah dot net
set flag to MEMCACHE_COMPRESSED, no problem.
 [2008-06-12 14:27 UTC] ian at digg dot com
I'm also seeing this, with 3.0.1. I downgraded to 2.2.3, and they went away.

I was getting notices for values as small as 2k:
Notice: MemcachePool::set() [function.MemcachePool-set]: send of 2639 bytes failed with errno=11 Resource temporarily unavailable

With v2.2.3, I'm able to set around 1mb of data with no problem.

This bug is a showstopper for me.

I found this discussion about the problem, which may be helpful.
http://www.nabble.com/About-memcached-errno%3D11-td16932492.html
 [2008-06-12 22:44 UTC] paulgao at yeah dot net
i use sysctl.conf, the problem is gone...

net.core.rmem_max = 262144
net.core.wmem_max = 262144
net.core.wmem_default = 262144
net.core.rmem_default = 262144
net.core.optmem_max = 40960
net.core.netdev_max_backlog = 1024
net.ipv4.tcp_wmem = 65536 131072 262144
net.ipv4.tcp_rmem = 16384 174760 349520
net.ipv4.tcp_mem = 196608 262144 393216
 [2008-06-24 13:31 UTC] mikael at synd dot info
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 [2008-09-02 19:11 UTC] joe at digg dot com
Is there a reason there hasn't been a new release on this 
recently? Lots of goodies and it's unstable for use as 
released.
 [2008-09-11 16:07 UTC] mikael at synd dot info
Version 3.0.2 has been released now
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 06:01:29 2025 UTC