php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59840 PHP AMQP extension hangs due to lack of time-out parameter
Submitted: 2011-07-05 21:17 UTC Modified: 2011-07-06 11:35 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: keith at krue dot gr Assigned:
Status: Wont fix Package: amqp (PECL)
PHP Version: 5.2.4 OS: Ubuntu 10.04
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
15 + 25 = ?
Subscribe to this entry?

 
 [2011-07-05 21:17 UTC] keith at krue dot gr
Description:
------------
Setup: 

Create a script that submits large messages to RabbitMQ using the AMQP extension, until the server starts to groan and produce log message alarms such as "vm_memory_high_watermark", indicating that it is running out of memory.

Once it gets past the high-water mark, it will sometimes continue to service requests, but eventually it appears to lock up and hang indefinitely. This can create a nightmare scenario for web sites that call rabbitmq as part of an end user's request.



Reproduce code:
---------------
sgfsd

Expected result:
----------------
The client library should eventually TIME out and give up on the server, throwing an exception. 

Actual result:
--------------
The client hangs indefinitely!


Proposed solution:

Please add a connection time out and a total time out option to each connection object and enforce it.  This may also require changes to the underlying C library rabbitmq-c.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-07-06 11:35 UTC] pdezwart at gmail dot com
Sorry, but your problem does not imply a bug in PECL itself.  For a
list of more appropriate places to ask for help using PECL, please
visit http://pecl.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PECL.

We do not have the time nor resources to extend the base librabbitmq library, which would be required for this particular feature. If you can get the RabbitMQ team or someone else to add this feature, we will gladly provide the hooks.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Oct 27 06:03:32 2021 UTC