bug in amqp0.5
Closed this issue · 4 comments
v0.5 workds fine with RabbitMQ 2.8.4, but when trying to connect to RabbitMQ 3.1.5 I get amqptest: <socket: 212>: hGetBuf: failed (Unknown error). I made a small test program called amqptest to narrow it down and also instrumented the amqp lib with some debug logging. The error happens after sending three frames to the server during login/setup.
@fegu can you post your small program and a stack trace? (Unknown error)
is not particularly informative.
Any warnings or errors in RabbitMQ log when you run it?
Could you also try the amqp master branch? I added some calls to hFlush there.
I am sorry for misleading you slightly, while the exception is unclear and should be better, the reason turned out to be that my user did not have access to the virtual host (/) I was using. Checking the server logs was a good tip, I have until now relied on packet captures.
I pushed a patch which, in case of a failed handshake, asks people to check the RabbitMQ logs. So hopefully no more hGetBuf error messages.