<div dir="ltr"><div>Setup: Centos 6.2, RabbitMQ 3.1.3, PHP 5.4.3</div><div><br></div><div>I am attempting to run the demo scripts from Alvaro Videla's php-amqlib (<a href="https://github.com/videlalvaro/php-amqplib">https://github.com/videlalvaro/php-amqplib</a>), specifically</div><div>amqp_consumer_non_blocking.php & amqp_publisher.php </div><div><br></div><div>One console is running 'php amqp_consumer_non_blocking.php', so I open another console and run 'php amqp_publisher.php This is a test'</div><div><br></div><div>'amqp_consumer_non_blocking.php' sits waiting with:</div><div><br></div><div><div><font face="courier new, monospace">< 60,20: Basic.consume</font></div><div><font face="courier new, monospace">waiting for 60,21</font></div><div><font face="courier new, monospace">waiting for a new frame</font></div><div><font face="courier new, monospace">> 60,21: Basic.consume_ok</font></div></div><div><font face="courier new, monospace"><br></font></div><div><font face="arial, sans-serif">and '</font>amqp_publisher.php<font face="arial, sans-serif">' produces this:</font></div><div><font face="courier new, monospace"><br></font></div><div><div><font face="courier new, monospace">< 60,40: Basic.publish</font></div><div><font face="courier new, monospace">< [hex]:</font></div><div><font face="courier new, monospace">0000 02 00 01 00 00 00 1A 00 3C 00 00 00 00 00 00 00 ........ <.......</font></div><div><font face="courier new, monospace">0010 00 00 0E 90 00 0A 74 65 78 74 2F 70 6C 61 69 6E .....te xt/plain</font></div><div><font face="courier new, monospace">0020 02 CE .Î</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">< [hex]:</font></div><div><font face="courier new, monospace">0000 03 00 01 00 00 00 0E 54 68 69 73 20 69 73 20 61 .......T his is a</font></div><div><font face="courier new, monospace">0010 20 74 65 73 74 CE testÎ</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">< [hex]:</font></div><div><font face="courier new, monospace">0000 01 00 01 00 00 00 0B 00 14 00 28 00 00 00 00 00 ........ ..(.....</font></div><div><font face="courier new, monospace">0010 00 00 CE ..Î</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">< 20,40: Channel.close</font></div><div><font face="courier new, monospace">waiting for 20,41</font></div><div><font face="courier new, monospace">waiting for a new frame</font></div></div><div><br></div><div>The message does not get delivered.</div><div><br></div><div>However, I have run these scripts on another virtual machine (Centos 6.2, Rabbit 3.1.3, PHP 5.4.3) and get the following from <font face="arial, sans-serif">'</font>amqp_publisher.php<font face="arial, sans-serif">'</font>:</div><div><br></div><div><div><font face="courier new, monospace">< 60,40: Basic.publish</font></div><div><font face="courier new, monospace">< [hex]:</font></div><div><font face="courier new, monospace">0000 02 00 01 00 00 00 1A 00 3C 00 00 00 00 00 00 00 ........ <.......</font></div><div><font face="courier new, monospace">0010 00 00 0E 90 00 0A 74 65 78 74 2F 70 6C 61 69 6E .....te xt/plain</font></div><div><font face="courier new, monospace">0020 02 CE .Î</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">< [hex]:</font></div><div><font face="courier new, monospace">0000 03 00 01 00 00 00 0E 54 68 69 73 20 69 73 20 61 .......T his is a</font></div><div><font face="courier new, monospace">0010 20 74 65 73 74 CE testÎ</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">< [hex]:</font></div><div><font face="courier new, monospace">0000 01 00 01 00 00 00 0B 00 14 00 28 00 00 00 00 00 ........ ..(.....</font></div><div><font face="courier new, monospace">0010 00 00 CE ..Î</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">< 20,40: Channel.close</font></div><div><font face="courier new, monospace">waiting for 20,41</font></div><div><font face="courier new, monospace">waiting for a new frame</font></div><div><font face="courier new, monospace">> 20,41: Channel.close_ok</font></div><div><font face="courier new, monospace">< [hex]:</font></div><div><font face="courier new, monospace">0000 01 00 00 00 00 00 0B 00 0A 00 32 00 00 00 00 00 ........ ..2.....</font></div><div><font face="courier new, monospace">0010 00 00 CE ..Î</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">< 10,50: Connection.close</font></div><div><font face="courier new, monospace">waiting for 10,51</font></div><div><font face="courier new, monospace">waiting for a new frame</font></div><div><b><font face="courier new, monospace">> 10,51: Connection.close_ok</font></b></div><div><b><font face="courier new, monospace">closing socket</font></b></div></div><div><br></div><div>And this from the consumer script:</div><div><br></div><div><div><font face="courier new, monospace">< 60,20: Basic.consume</font></div><div><font face="courier new, monospace">waiting for 60,21</font></div><div><font face="courier new, monospace">waiting for a new frame</font></div><div><font face="courier new, monospace">> 60,21: Basic.consume_ok</font></div><div><font face="courier new, monospace">waiting for any method</font></div><div><font face="courier new, monospace">waiting for a new frame</font></div><div><b><font face="courier new, monospace">> 60,60: Basic.deliver</font></b></div><div><b><font face="courier new, monospace">waiting for a new frame</font></b></div><div><b><font face="courier new, monospace">waiting for a new frame</font></b></div><div><b><font face="courier new, monospace"><br></font></b></div><div><b><font face="courier new, monospace">--------</font></b></div><div><b><font face="courier new, monospace">This is a test</font></b></div><div><b><font face="courier new, monospace">--------</font></b></div><div><b><font face="courier new, monospace">< [hex]:</font></b></div><div><b><font face="courier new, monospace">0000 01 00 01 00 00 00 0D 00 3C 00 50 00 00 00 00 00 ........ <.P.....</font></b></div><div><b><font face="courier new, monospace">0010 00 00 01 00 CE ....Î</font></b></div><div><b><font face="courier new, monospace"><br></font></b></div><div><b><font face="courier new, monospace">< 60,80: Basic.ack</font></b></div></div><div><br></div><div>What could be the reason that the message is not being delivered?</div></div>