postwait / node-amqp

[UNMAINTAINED] node-amqp is an AMQP client for nodejs
MIT License
1.69k stars 357 forks source link

Bulk channels Auto generate by script #382

Open hitesh1818 opened 9 years ago

hitesh1818 commented 9 years ago

Hello there,

I am using amqp node, i found problem with lack of idle channel, can you please explain what is wrong here my queue is auto expire. but channel is going increase and increase.

Please suggest me a best solution.

tobias-neubert commented 9 years ago

Hm, if I understand you correctly, try setting the heartbeat option for node amqp. It is not set per default, which causes the operating system to close an idle connection.

hitesh1818 commented 9 years ago

Can you please tell me from where i can add heartbeat i read your documentation but unable to find heartbeat option in config. Please help.

tobias-neubert commented 9 years ago

Well it is only mentioned in the describing test within the readme. It is part of the options object that you pass to the createConnection function:

var internalConnection = amqp.createConnection({ host: 'your-host', port: 'your-port', login: 'your-user', password: 'your-password', vhost: 'your-virtual-host', heartbeat: 'your heartbeat in seconds' });

hitesh1818 commented 9 years ago

Thanks for your reply. I already did this stuff by opened your library code.

On Mon, Mar 16, 2015 at 3:38 PM, tobias-neubert notifications@github.com wrote:

Well it is only mentioned in the describing test within the readme. It is part of the options object that you pass to the createConnection function:

var internalConnection = amqp.createConnection({ host: 'your-host', port: 'your-port', login: 'your-user', password: 'your-password', vhost: 'your-virtual-host', heartbeat: 'your heartbeat in seconds' });

— Reply to this email directly or view it on GitHub https://github.com/postwait/node-amqp/issues/382#issuecomment-81556672.

Thanks, Hitesh Dobariya, Artoon Solutions PVT. LTD