php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #60592 timeoutms property of addServer() not merget into version 3.x branch
Submitted: 2011-12-22 07:55 UTC Modified: 2011-12-22 10:24 UTC
From: nik at mt1 dot down-to-details dot com Assigned:
Status: Closed Package: memcache (PECL)
PHP Version: Irrelevant OS:
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: nik at mt1 dot down-to-details dot com
New email:
PHP Version: OS:

 

 [2011-12-22 07:55 UTC] nik at mt1 dot down-to-details dot com
Description:
------------
Since memcache is quite fast the timeout default timeout of 1 sec is just too long 
for big website with a lot of requests. What happens is that all requests will 
timeout for at least 1 sec which blocks the Apache process (potentially, all 
processes). Additionally, Apache childs are created and old killed to get rid of 
memory leaks. 

The timeoutms value mitigates a bit the problem but not completely. Also it's not 
present in the 3.x branch which is more High Availability oriented (with the 
redundancy options). 

I would like to suggest that this functionality is merged into v3 branch and also 
extended to cover the initial connect. This means quicker fail-over.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-12-22 08:04 UTC] nik at mt1 dot down-to-details dot com
There is a patch listed here 
http://www.lmpx.com/nav/article.php/news.php.net/php.pecl.cvs/11671/read/index.htm
l

This patch also adds connect_timeoutms for the initial connect. 

If this can be merget in 3x branch will be great.
 [2011-12-22 10:24 UTC] nik at mt1 dot down-to-details dot com
-Status: Open +Status: Closed
 [2011-12-22 10:24 UTC] nik at mt1 dot down-to-details dot com
Ok, it seems that there is decrepancy in php documentation. There is workaround 
described here: http://freebsd.down-to-details.com/sys-admin/memcache-redundancy-
and-high-availability/
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 15:01:33 2025 UTC