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

SMK-1394: Infinite loop on close connection #4

Merged
merged 1 commit into from
Apr 24, 2017

Conversation

ruicampos
Copy link

This is affecting consumers when it takes more than 2*heartbeat time to process a message.
When trying to close the connection, library will:

  • check the heartbeat
  • detect that it passed more than 2*times the heartbeat value without receiving anything
  • considers that server has gone away and tries to reconnect
  • after reconnecting as it is not clearing internal variables with time of last read, it will check the heartbeat again and try to reconnect again in loop.

There are already issues on the library's github: php-amqplib#309 and php-amqplib#413

Release patch version: 2.6.2

cc @smarkio/developers

This is affecting consumers when it takes more than 2*heartbeat time to process a message.
When trying to close the connection, library will:
* check the heartbeat
* detect that it passed more than 2*times the heartbeat value without receiving anything
* considers that server has gone away and tries to reconnect
* after reconnecting as it is not clearing internal variables with time of last read, it will check the heartbeat again and try to reconnect again in loop.

There are already issues on the library's github: php-amqplib#309 and php-amqplib#413
@escudeiro escudeiro merged commit 3205915 into master Apr 24, 2017
@escudeiro escudeiro deleted the SMK-1394/infinite_loop_on_close_connection branch April 24, 2017 09:16
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.

2 participants