php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #64691 andrei
Submitted: 2013-04-22 14:28 UTC Modified: 2013-04-22 15:52 UTC
From: arjen at react dot com Assigned: andrei (profile)
Status: Closed Package: memcached (PECL)
PHP Version: andrei OS: andrei
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: arjen at react dot com
New email:
PHP Version: OS:

 

 [2013-04-22 14:28 UTC] arjen at react dot com
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-04-22 15:52 UTC] andrei@php.net
Please enter this as an issue on Github:

https://github.com/php-memcached-dev/php-memcached/issues
 [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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 04:01:28 2024 UTC