Skip to content

BatchConsumer loop after SIGTERM #476

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

Merged
merged 4 commits into from
Oct 21, 2017
Merged

BatchConsumer loop after SIGTERM #476

merged 4 commits into from
Oct 21, 2017

Conversation

nturato
Copy link
Contributor

@nturato nturato commented Sep 28, 2017

This pull request solves a bug I discovered on the BatchConsumer.
When sent a SIGTERM or SIGINT if at least one message of the batch was loaded it would start looping until reaching the maximum function nesting and throwing a fatal error.

loop chain is:
stopConsumer -> batchConsume -> handleProcessMessages -> maybeStopConsumer -> stopConsumer

this also causes the same batch of messages to be processed multiple times.

Nicola Turato and others added 4 commits September 28, 2017 13:49
@stloyd stloyd added the Bug fix label Oct 21, 2017
@stloyd stloyd merged commit 4eea551 into php-amqplib:master Oct 21, 2017
@stloyd
Copy link
Collaborator

stloyd commented Oct 21, 2017

Good catch @nturato , thanks for the fix!

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

Successfully merging this pull request may close these issues.

2 participants