Skip to content

InvalidArgumentException on heartbeat set to zero#142

Open
007hacky007 wants to merge 1 commit into
jakubkulhan:masterfrom
007hacky007:007hacky007-patch-1
Open

InvalidArgumentException on heartbeat set to zero#142
007hacky007 wants to merge 1 commit into
jakubkulhan:masterfrom
007hacky007:007hacky007-patch-1

Conversation

@007hacky007

Copy link
Copy Markdown

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