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: -
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:
Status: Open Package: amqp (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
48 + 8 = ?
Subscribe to this entry?

 
 [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 ?
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Dec 15 20:01:28 2019 UTC