Skip to content

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

2 participants