|  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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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: Sun Oct 25 06:01:24 2020 UTC