Open hitesh1818 opened 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.
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.
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' });
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
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.