|  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: 2021-06-10 15:34 UTC
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: cmb (profile)
Status: Closed Package: amqp (PECL)
PHP Version: Irrelevant OS:
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: 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 ?
 [2021-06-10 15:34 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-06-10 15:34 UTC]
The amqp bug tracker is now on Github[1].  If this is still an
issue, please report there.

[1] <>
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Sep 25 09:03:37 2021 UTC