[rabbitmq-discuss] set/getTimeout in RabbitMQ for PHP

Umutcan umutcan at gamegos.com
Thu Jun 27 09:27:30 BST 2013


Hi,

There is setTimeout(),setReadTimeout(),setWriteTimeout(). setTimeout is 
deprecated in the latest version.

These timeouts does not work if you are having problems in connection 
time. They all works after client is connected. There is an issue about 
this: https://github.com/pdezwart/php-amqp/issues/63

Regards,
Umutcan
On 06/27/2013 10:40 AM, Alvaro Videla wrote:
> Hi,
>
> I've never used this library. Maybe there's a bug there. Have you 
> tried contacted the library authors?
>
> In any case, there's also http://github.com/videlalvaro/php-amqplib 
> which supports timeouts on the "wait" method: 
> https://github.com/videlalvaro/php-amqplib/blob/master/PhpAmqpLib/Channel/AbstractChannel.php#L174
>
> Regards,
>
> Alvaro
>
>
>
> On Wed, Jun 19, 2013 at 8:40 AM, Iliya Isd <iliyaisd at gmail.com 
> <mailto:iliyaisd at gmail.com>> wrote:
>
>     Hello! Having the next problem, maybe somebody has issued that.
>     I'm trying to use the next function:
>     http://php.net/manual/ru/amqpconnection.settimeout.php
>     but nothing changes. Timeout isn't working. Thereby there's no way
>     to avoid hanging up the site when trying to send message to
>     rabbitMQ...
>     Any ideas?
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130627/2eec5400/attachment.htm>


More information about the rabbitmq-discuss mailing list