|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #61389 Feature request: set connection timeout
Submitted: 2012-03-14 18:37 UTC Modified: -
Avg. Score:4.6 ± 0.7
Reproduced:4 of 4 (100.0%)
Same Version:1 (25.0%)
Same OS:1 (25.0%)
From: pierre dot mariani at gmail dot com Assigned:
Status: Open Package: amqp (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: pierre dot mariani at gmail dot com
New email:
PHP Version: OS:


 [2012-03-14 18:37 UTC] pierre dot mariani at gmail dot com
There is currently no way to set a connection timeout through the API. 
When trying to connect to an open but wrong port, it takes more than 30s to 
timeout (not sure how much exactly as the scripts dies before for other reasons).
Would it be possible to add a setConnectionTimeout(int seconds) method to the 
AMQPConnection class?


amqp_timeout.patch (last revision 2012-09-26 10:58 UTC by mitallast at gmail dot com)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-11-14 01:17 UTC] bkw at codingforce dot com
Version 1.0.9 adds timeouts. Based on a quick glance, I'd day the implementaion 
is almost identical to your patch.
The docs are still out of date, but could you take a look at ?
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri Oct 30 20:01:24 2020 UTC