It is not documented right here, but amqp.timeout (integer) INI setting exists, check AMQPConnection::setTimeout for more.
Also you can pass it as a 'timeout' key in credentials array in AMQPConnection::__construct
Actually, it works as a timeout to wait for a new messages in AMQPQueue::consume method before die with
Fatal error: Uncaught exception 'AMQPConnectionException' with message 'Resource temporarily unavailable' in /path/to/test/file.php:12
Runtime Configuration
The behaviour of these functions is affected by settings in php.ini.
| Name | Default | Changeable | Changelog |
|---|---|---|---|
| amqp.host | localhost | PHP_INI_ALL | |
| amqp.vhost | / | PHP_INI_ALL | |
| amqp.port | 5672 | PHP_INI_ALL | |
| amqp.login | guest | PHP_INI_ALL | |
| amqp.password | guest | PHP_INI_ALL |
Here's a short explanation of the configuration directives.
- amqp.host string
-
The host to which to connect.
- amqp.vhost string
-
The virtual host to which to connect on the host.
- amqp.port integer
-
The port on which to connect.
- amqp.login string
-
The login (username) used for authenticating against the host.
- amqp.password string
-
The password used for authenticating against the host.
pinepain at gmail dot com ¶
5 months ago
