Skip to content

[rdkafka] add non-blocking poll call to serve cb's #1102

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

Conversation

nick-zh
Copy link
Contributor

@nick-zh nick-zh commented Oct 5, 2020

Should fix #749, calling poll(0) is non-blocking and poses minimal overhead. This way callbacks can be triggered, which is important to receive errors, delivery reports, etc. when producing a message.

@nick-zh nick-zh changed the title add non-blocking poll call to serve cb's [rdkafka] add non-blocking poll call to serve cb's Oct 5, 2020
@nick-zh
Copy link
Contributor Author

nick-zh commented Oct 5, 2020

@Steveb-p @makasim please have a look ✌️

@Steveb-p
Copy link
Contributor

Steveb-p commented Oct 7, 2020

Async nature of Kafka driver and since we're not really waiting for message production results errors might occur later on, but this is the least that can be done and should increase the overall stability ;)

@nick-zh thanks.

@makasim makasim merged commit b7d5f9e into php-enqueue:master Oct 7, 2020
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.

[kafka] RdKafkaProducer has no way of error handling
3 participants