Skip to content

Instantly share code, notes, and snippets.

@mberberoglu
Created October 29, 2013 10:24
Show Gist options
  • Save mberberoglu/7212114 to your computer and use it in GitHub Desktop.
Save mberberoglu/7212114 to your computer and use it in GitHub Desktop.
< [hex]:
0000 41 4D 51 50 00 00 09 01 AMQP....
waiting for 10,10
waiting for a new frame
> 10,10: Connection.start
Start from server, version: 0.9, properties: capabilities=(publisher_confirms=1, exchange_exchange_bindings=1, basic.nack=1, consumer_cancel_notify=1), copyright=Copyright (C) 2007-2013 GoPivotal, Inc., information=Licensed under the MPL. See http://www.rabbitmq.com/, platform=Erlang/OTP, product=RabbitMQ, version=3.1.5, mechanisms: AMQPLAIN, PLAIN, locales: en_US
< 10,11: Connection.start_ok
< [hex]:
0000 01 00 00 00 00 00 D9 00 0A 00 0B 00 00 00 9B 07 ......?. ......?.
0010 6C 69 62 72 61 72 79 53 00 00 00 0C 50 48 50 20 libraryS ....PHP
0020 41 4D 51 50 20 4C 69 62 0F 6C 69 62 72 61 72 79 AMQP Lib .library
0030 5F 76 65 72 73 69 6F 6E 53 00 00 00 03 32 2E 30 _version S....2.0
0040 0C 63 61 70 61 62 69 6C 69 74 69 65 73 46 00 00 .capabil itiesF..
0050 00 58 12 70 75 62 6C 69 73 68 65 72 5F 63 6F 6E .X.publi sher_con
0060 66 69 72 6D 73 74 01 16 63 6F 6E 73 75 6D 65 72 firmst.. consumer
0070 5F 63 61 6E 63 65 6C 5F 6E 6F 74 69 66 79 74 01 _cancel_ notifyt.
0080 1A 65 78 63 68 61 6E 67 65 5F 65 78 63 68 61 6E .exchang e_exchan
0090 67 65 5F 62 69 6E 64 69 6E 67 73 74 01 0A 62 61 ge_bindi ngst..ba
00A0 73 69 63 2E 6E 61 63 6B 74 01 08 41 4D 51 50 4C sic.nack t..AMQPL
00B0 41 49 4E 00 00 00 23 05 4C 4F 47 49 4E 53 00 00 AIN...#. LOGINS..
00C0 00 05 67 75 65 73 74 08 50 41 53 53 57 4F 52 44 ..guest. PASSWORD
00D0 53 00 00 00 05 67 75 65 73 74 05 65 6E 5F 55 53 S....gue st.en_US
00E0 CE ?
< 10,11: Connection.start_ok
waiting for 10,20, 10,30
waiting for a new frame
> 10,30: Connection.tune
< 10,31: Connection.tune_ok
< [hex]:
0000 01 00 00 00 00 00 0C 00 0A 00 1F FF FF 00 02 00 ........ ...??...
0010 00 00 00 CE ...?
< 10,31: Connection.tune_ok
< 10,40: Connection.open
< [hex]:
0000 01 00 00 00 00 00 08 00 0A 00 28 01 2F 00 00 CE ........ ..(./..?
< 10,40: Connection.open
waiting for 10,41
waiting for a new frame
> 10,41: Connection.open_ok
Open OK! known_hosts:
using channel_id: 1
< 20,10: Channel.open
< [hex]:
0000 01 00 01 00 00 00 05 00 14 00 0A 00 CE ........ ....?
< 20,10: Channel.open
waiting for 20,11
waiting for a new frame
> 20,11: Channel.open_ok
Channel open
< 50,10: Queue.declare
< [hex]:
0000 01 00 01 00 00 00 10 00 32 00 0A 00 00 04 6D 73 ........ 2.....ms
0010 67 73 02 00 00 00 00 CE gs.....?
< 50,10: Queue.declare
waiting for 50,11
waiting for a new frame
> 50,11: Queue.declare_ok
< 40,10: Exchange.declare
< [hex]:
0000 01 00 01 00 00 00 19 00 28 00 0A 00 00 06 72 6F ........ (.....ro
0010 75 74 65 72 06 64 69 72 65 63 74 02 00 00 00 00 uter.dir ect.....
0020 CE ?
< 40,10: Exchange.declare
waiting for 40,11
waiting for a new frame
> 40,11: Exchange.declare_ok
< 50,20: Queue.bind
< [hex]:
0000 01 00 01 00 00 00 18 00 32 00 14 00 00 04 6D 73 ........ 2.....ms
0010 67 73 06 72 6F 75 74 65 72 00 00 00 00 00 00 CE gs.route r......?
< 50,20: Queue.bind
waiting for 50,21
waiting for a new frame
> 50,21: Queue.bind_ok
< 60,20: Basic.consume
< [hex]:
0000 01 00 01 00 00 00 19 00 3C 00 14 00 00 04 6D 73 ........ <.....ms
0010 67 73 08 63 6F 6E 73 75 6D 65 72 00 00 00 00 00 gs.consu mer.....
0020 CE ?
< 60,20: Basic.consume
waiting for 60,21
waiting for a new frame
> 60,21: Basic.consume_ok
waiting for any method
waiting for a new frame
PHP Fatal error: Uncaught exception 'PhpAmqpLib\Exception\AMQPRuntimeException' with message 'Error reading data. Received 0 instead of expected 7 bytes' in /Users/mustafa/www/MyApp/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Wire/IO/StreamIO.php:50
Stack trace:
#0 /Users/mustafa/www/MyApp/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Wire/AMQPReader.php(128): PhpAmqpLib\Wire\IO\StreamIO->read(7)
#1 /Users/mustafa/www/MyApp/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Wire/AMQPReader.php(88): PhpAmqpLib\Wire\AMQPReader->rawread(7)
#2 /Users/mustafa/www/MyApp/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(311): PhpAmqpLib\Wire\AMQPReader->read(7)
#3 /Users/mustafa/www/MyApp/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(344): PhpAmqpLib\Connection\AbstractConnection->wait_frame(0)
#4 /Users/mustafa/www/MyApp/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(121): PhpAmqpLib\Connection\AbstractConnection->wait_channel( in /Users/mustafa/www/MyApp/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Wire/IO/StreamIO.php on line 50
< 20,40: Channel.close
< [hex]:
0000 01 00 01 00 00 00 0B 00 14 00 28 00 00 00 00 00 ........ ..(.....
0010 00 00 CE ..?
PHP Fatal error: Uncaught exception 'PhpAmqpLib\Exception\AMQPTimeoutException' with message 'Error sending data. Socket connection timed out' in /Users/mustafa/www/MyApp/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Wire/IO/StreamIO.php:71
Stack trace:
#0 /Users/mustafa/www/MyApp/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(173): PhpAmqpLib\Wire\IO\StreamIO->write('??????????(????...')
#1 /Users/mustafa/www/MyApp/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(258): PhpAmqpLib\Connection\AbstractConnection->write('??????????(????...')
#2 /Users/mustafa/www/MyApp/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(126): PhpAmqpLib\Connection\AbstractConnection->send_channel_method_frame(1, Array, Object(PhpAmqpLib\Wire\AMQPWriter))
#3 /Users/mustafa/www/MyApp/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Channel/AMQPChannel.php(148): PhpAmqpLib\Channel\AbstractChannel->send_method_frame(Array, Object(PhpAmqpLib\Wire\AMQPWri in /Users/mustafa/www/MyApp/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Wire/IO/StreamIO.php on line 71
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment