Zend Framework

Zend_Queue_Adapter_Memcacheq should not open new socket each time send() is called

Details

  • Type: Performance Improvement Performance Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.9.5
  • Fix Version/s: 1.9.6
  • Component/s: Zend_Queue
  • Labels:
    None

Description

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".

Issue Links

Activity

Hide
Justin Plock added a comment -

Fixed in SVN commit # 18741

Show
Justin Plock added a comment - Fixed in SVN commit # 18741

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: