[openamq-dev] Multi-threaded connection requests fail?

Martin Sustrik sustrik at imatix.com
Thu Nov 8 14:28:00 CET 2007


Elli,

> Yes, I get NULL back.

Looking at the code the NULL can be returned either because the memory 
for the connection object cannot be allocated or because the broker 
haven't replied to initial client-broker handshake within the timeout 
period (30 secs in your example).

I would suggest running the broker with -t 3 option and redirecting the 
console output to a file. Then run you test app and send us the file. 
We'll have a look.

> I have been stepping through the code.  Does GDB get in the way?

Probably not, unless you've been pausing at specific point in 
amq_connection_new function for longer than 30 secs.

> BTW - I only have a single core on this PC. Would that have any effect?

It shouldn't have any effect AFAICS.

Martin


More information about the openamq-dev mailing list