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

fix regression after #675 due to too early changed flag #676

Merged

Conversation

ramunasd
Copy link
Member

@ramunasd ramunasd commented Apr 5, 2019

PR #675 introduced issue with connection close because AbstractConnection->close() sets flag too early, right before check:

if (empty($this->protocolWriter) || !$this->isConnected()) {
            return $result;
        }

So everything else after this check became dead code. Besides fix for this issue I added "hard" close on any exception during closing process.

@lukebakken
Copy link
Collaborator

Fastest fix ever!

@lukebakken lukebakken merged commit c244f9f into php-amqplib:master Apr 5, 2019
@ramunasd ramunasd deleted the fix_connection_close_regresion_675 branch April 6, 2019 13:37
kratkyzobak pushed a commit to kratkyzobak/php-amqplib that referenced this pull request Feb 9, 2024
…_regresion_675

fix regression after php-amqplib#675 due to too early changed flag
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.

None yet

2 participants