|  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
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
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.
Bug Type:
From: keith at krue dot gr
New email:
PHP Version: OS:


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

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:

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.


Add a Patch

Pull Requests

Add a Pull Request


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 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: Tue Oct 26 03:03:35 2021 UTC