[rabbitmq-discuss] rabbitmq erlang client
Ben Hood
0x6e6562 at gmail.com
Thu Nov 6 23:13:36 GMT 2008
[Orion|Henry],
On Thu, Nov 6, 2008 at 9:19 PM, Orion Henry <orion.henry at gmail.com> wrote:
> My test code looks like this:
>
> test_client() ->
> io:format("--- begin~n"),
> Connection =
> amqp_connection:start_link("mylogin","mypass","127.0.0.1",<<"/myvhost">>),
> io:format("--- got Connection = ~p.~n",[Connection]),
> Channel = amqp_connection:open_channel(Connection),
> io:format("--- got Channel = ~p.~n",[Channel]).
>
> this seems to work ok but I get a "Have a look into this one: closed"
> message a split second later. If I add anymore code, such as a
>
> X2 = lib_amqp:declare_exchange(Channel, <<"abc">>),
I've run your test code with the client version you specified and it
seems fine :-(
The error log you are seeing "Have a look into this one: closed"
indicates that the TCP connection between the client and the broker
has been closed for some reason.
Maybe you can elaborate on your setup, like how you installed Rabbit,
the client and look into the server logs.
> I'm currently using erlang client 3a9ce636e283 and rabbitmq_server
> 200803291005. That said I have not been able to get the erlang make
> all_tests work against the rabbitmq server.
What do you get when you run network_client_test:test/0 ?
Ben
More information about the rabbitmq-discuss
mailing list