Doc #62772 [Opn->Csd]: consume method hangs script forever if no messages in queue available

From: Date: Sun, 25 Mar 2018 22:23:22 +0000
Subject: Doc #62772 [Opn->Csd]: consume method hangs script forever if no messages in queue available
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15565@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62772&edit=1 ID: 62772 Updated by: cmb@php.net Reported by: danclax at rambler dot ru Summary: consume method hangs script forever if no messages in queue available -Status: Open +Status: Closed Type: Documentation Problem Package: amqp Operating System: CentOS 6.2 PHP Version: 5.3Git-2012-08-07 (Git) -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: The amqp book has been removed from the PHP manual[1], so this ticket is obsolete. [1] <http://svn.php.net/viewvc?view=revision&revision=333033> Previous Comments: ------------------------------------------------------------------------ [2012-11-14 01:02:24] bkw at codingforce dot com The just released version 1.0.9 adds specifying timeouts for the socket, unfortunately we're still struggling to get the documentation up to date. In the meantime, you can find an example at https://github.com/pdezwart/php- amqp/blob/master/tests/amqpqueue_consume_timeout.phpt ------------------------------------------------------------------------ [2012-08-07 18:42:30] danclax at rambler dot ru Description: ------------ when calling AMQPQueue::consume it should be a way to set method timeout. Otherwise PHP script will run for a long time, even if browser close connection. Also connection is kept to amqp server, until httpd restart ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62772&edit=1

« previous php.doc.bugs (#15565) next »