memcache buffer overflow?

batrick nginx-forum at
Tue May 19 02:06:29 MSD 2009

Hi Anton,

many thanks for this. The problem is indeed that the PHP memcache client by default enables compression for large objects. When retrieving the memcache object from PHP everything appears fine, but nginx does not handle the compression. The feature can be disabled by setting the "minimum required saving" before compression to 100%:

$memcache->setCompressThreshold(0, 1);

I hope this will be helpful to anyone else with this problem and once again thanks to Anton for his prompt help!

Kind regards,


Posted at Nginx Forum:,2160,2164#msg-2164

More information about the nginx mailing list