[rabbitmq-discuss] Connection problems with Rabbitmq 1.4.0
maarten at iridia.nl
Thu Nov 27 15:29:27 GMT 2008
2008/11/27 Matthias Radestock <matthias at lshift.net>:
>> Attached the new file. The contents have been captured
>> with `tcpdump -i lo0 -w trace.pcap port 5672`
> It looks like the client is sending a perfectly correct protocol header but
> the server just closes the socket rather than sending a connection.start
Ok, that fits my experience with the other libraries I used.
> Are there any errors in the rabbit-sasl.log?
Actually, there are:
=CRASH REPORT==== 27-Nov-2008::15:52:27 ===
exception error: undefined function rabbit_log:message/4
in function rabbit_writer:assemble_frames/2
in call from rabbit_writer:internal_send_command/3
in call from rabbit_reader:send_on_channel0/2
in call from rabbit_reader:handle_input/3
in call from rabbit_reader:mainloop/3
in call from rabbit_reader:start_connection/3
initial call: rabbit_reader:init(<0.1303.0>)
=SUPERVISOR REPORT==== 27-Nov-2008::15:52:27 ===
And this actually makes a lot of sense. After having problems running
my code I rebuild rabbit with debugging set to on. I totally forgot
that I was running rabbit with this flag on true during compilation.
The debug flag makes this define in rabbit.hrl active:
rabbit_log:message does not exist in rabbit_log.erl and ?LOGMESSAGE is
called in the first line of rabbit_writer:assemble_frames/2. Which
creates on obvious crash.
After recompiling rabbit the examples work as expected.
Matthias, thank you for your help with this (ending up as a minor) problem.
More information about the rabbitmq-discuss