Unable to connect to RabbitMQ

0 views
Skip to first unread message

everret

unread,
Jul 4, 2008, 10:29:02 PM7/4/08
to as3-amqp-user
Hi,

I am using the as3amqp code from the Mercurial repo. I tried creating
a demo application which is basically identical to the code found at
http://hopper.squarespace.com/blog/2008/3/24/as3-amqp-client-first-cut.html
(updated to use the new accessor properties). The demo application is
on Windows. I am running RabbitMQ 1.3.0 on a separate Debian machine.
There are no firewalls between the two machines.

When I run the application in debug mode from Flex Builder I get the
following trace output:

Calling handleForcedShutdown from connection
forceClose called

My RabbitMQ server reports the following in its rabbit.log:

=INFO REPORT==== 5-Jul-2008::04:43:14 ===
accepted TCP connection on 0.0.0.0:5672 from 192.168.42.101:2444

=ERROR REPORT==== 5-Jul-2008::04:43:24 ===
error on TCP connection from 192.168.42.101:2444
{handshake_timeout,frame_header}

=INFO REPORT==== 5-Jul-2008::04:43:24 ===
closing TCP connection from 192.168.42.101:2444

Would someone please help me? Thanks in advance.

--
Everret

Ben Hood

unread,
Jul 5, 2008, 2:49:03 AM7/5/08
to as3-am...@googlegroups.com
Hi Everett,

I think this happens after a client has opened a socket connection to
the RabbitMQ broker, has sent the AMQP protocol header but has taken
too long to respond to the first AMQP command, i.e. ConnectionStart.

This could either because the network connection was too slow or got
interrupted or a client waited too long to start the AMQP connection
within the TCP connection it had already started.

To check for the first, you could run the client and the broker on the
same machine.

To check for the second, I would have to see your code to see if there
is a mistake anywhere. In general, the AS3 client sends a
ConnectionStartOk when the onStart() callback in the
ConnectionStateHandler is invoked. You can always set a breakpoint in
this method to find out whether it is being invoked or not.

Alternatively to test a more recent version of the AS3 client in a
really easy fashion to eliminate any problem there may be with the
current test code, you can use this demo client:
http://github.com/0x6e6562/json-over-amqp/ which will a simple client
out of the box.

Furthermore I do have a suite of unit tests that I use to develop the
client, which I haven't put into version control yet because it is in
a separate project because of the way Flexbuilder structures it's
projects. I could of course make this available.

HTH,

Ben

Reply all
Reply to author
Forward
0 new messages