[rabbitmq-discuss] Will this work?
Dinabandhu.Mitra at tecnotree.com
Thu Jan 21 11:43:44 GMT 2010
Thanks. I must have misunderstood the post. I will change my code to have a single shared socket, single shared connection but per thread channel.
> -----Original Message-----
> From: Matthias Radestock [mailto:matthias at lshift.net]
> Sent: Thursday, January 21, 2010 5:10 PM
> To: Dinabandhu Mitra
> Cc: Tony Garnock-Jones; rabbitmq-discuss at lists.rabbitmq.com; rabbitmq
> Subject: Re: [rabbitmq-discuss] Will this work?
> Dinabandhu Mitra wrote:
> > I searched the mailing list for correct way to write a multithreaded
> > application for RabbitMQ and found a post from you that suggests I
> > should have a single shared socket but thread specific connection and
> > channel.
> I cannot help you with the C client in general - that is Tony's domain
> and he's on holiday - but the above is definitely wrong: a single tcp
> connection can only handle a single AMQP connection.
> OTOH, you can indeed have multiple channels per AMQP connection, and
> that is indeed what you'd do if you have multiple client threads.
More information about the rabbitmq-discuss