ZF-8182: Zend_Queue_Adapter_Memcacheq should not open new socket each time send() is called

Issue Type: Performance Improvement Created: 2009-10-29T17:52:20.000+0000 Last Updated: 2009-11-02T17:39:08.000+0000 Status: Closed Fix version(s): - 1.9.6 (24/Nov/09)

Reporter: George Miroshnikov (laggyluke) Assignee: Justin Plock (jplock) Tags: - Zend_Queue

Related issues: - ZF-8183



Method send() calls isExists() that calls getQueues() that in turn calls _sendCommand() that opens new socket each time it's called. This is real performance killer and even leads to denial of service due to reaching sockets limit on heavy writes.

I would suggest either lazy opening single socket and holding it around, or completely remove isExists() call from send() because it's useless anyway - in Memcacheq, queues are created on-the-fly, so they always "exist".


Posted by Justin Plock (jplock) on 2009-10-30T09:29:24.000+0000

Fixed in SVN commit # 18741

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.