Skip to content

consumer: Exit poll if consumer is closed #2152

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 1 commit into from
Nov 15, 2020

Conversation

rikonen
Copy link
Contributor

@rikonen rikonen commented Oct 30, 2020

Caller may invoke poll with long timeout and then end up closing the
consumer from another thread e.g. to stop the application. Previously
poll forcibly waited for the timeout before existing even though it
could do nothing but spin in busy loop for the remainder of the time.


This change is Reviewable

Caller may invoke poll with long timeout and then end up closing the
consumer from another thread e.g. to stop the application. Previously
poll forcibly waited for the timeout before existing even though it
could do nothing but spin in busy loop for the remainder of the time.
Copy link
Contributor

@jeffwidman jeffwidman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense to me, but I'm going to let @dpkp take a look as he knows this section of the code far better than me.

@dpkp
Copy link
Owner

dpkp commented Nov 15, 2020

This makes sense to me -- thanks!

@dpkp dpkp merged commit 6c87155 into dpkp:master Nov 15, 2020
@rikonen rikonen deleted the rauli-exit-poll-on-closed-consumer branch November 16, 2020 16:56
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.

4 participants