Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidArgumentException on heartbeat set to zero #142

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

007hacky007
Copy link

Throws InvalidArgumentException on zero heartbeat.

Setting heartbeat to zero usually means heartbeat is disabled (or value from the server is used) - i.e. php-amqplib/RabbitMqBundle#552

Currently, setting heartbeat to zero in bunny causes DoS on the rabbit server - in my case it caused 1 Mpps rate with 1 Gbps traffic and the CPU load has been maxed out on our rabbit server. So no one realistically wants this behavior.

It took me quite some time to debug this (initially I thought it was caused due to forking and some async issues).
I believe I may not be the only one setting this to zero thinking it would disable the heartbeat like on other implementations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant