php.net |  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
Votes:7
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
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:
Package:
Bug Type:
Summary:
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
Description:
------------
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?


Patches

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

History

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 
https://github.com/pdezwart/php-amqp/pull/13 ?
 [2021-06-10 15:34 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-06-10 15:34 UTC] cmb@php.net
The amqp bug tracker is now on Github[1].  If this is still an
issue, please report there.

[1] <https://github.com/php-amqp/php-amqp/issues>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 16:01:29 2024 UTC