|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-04-22 15:52 UTC] andrei@php.net
[2013-04-22 15:52 UTC] andrei@php.net
-Summary: Close unused persistent memcached
connections after specified timeout.
+Summary: andrei
-Status: Open
+Status: Closed
-Operating System:
+Operating System: andrei
-PHP Version: 5.4.14
+PHP Version: andrei
-Assigned To:
+Assigned To: andrei
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Mar 11 09:00:01 2026 UTC |
Description: ------------ Persistent connections to memcached appear to be only closed when apache/php-fpm is restarted. Our persistent identifier is based on the application version, so old data for some caches is automagically expired. However, the old persistent connections won't be closed and keeps lots of unused tcp connections open. Test script: --------------- <?php for ($i = 0; $i < 10000; $i++) $m = new Memcached('persistent' . $i); Expected result: ---------------- Unused persistent connections should be closed after a configurable timeout.