Skip to content

Adapt to latest Asio APIs (Asio 1.32 or Boost.Asio 1.87) #477

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

BewareMyPower
Copy link
Contributor

Fixes #475

Motivation

There were some breaking changes with Boost.Asio APIs so that the code base is incompatible with the latest Boost.Asio.

Modifications

Adapt to latest Asio APIs and improve workflow test both Asio and Boost.Asio.

@BewareMyPower BewareMyPower self-assigned this Mar 9, 2025
@BewareMyPower BewareMyPower added this to the 3.8.0 milestone Mar 9, 2025
@BewareMyPower BewareMyPower marked this pull request as draft March 9, 2025 14:53
oversearch added a commit to oversearch/pulsar-client-cpp that referenced this pull request Apr 9, 2025
This was introduced in v3.7.0 via apache#477. which contained a change that attempted to fix an issue where a pre-mature ack of a message before a multi-topic subscriber was ready could have caused a crash.  To fix the original bug, all multi-topic subscriptions are started with their message listener paused. They later get un-paused once all topics are successfully subscribed and connected.  However, on a regex subscription when new topics are discovered, they also start in a paused state, and there's no mechanism to resume them.  Hence, they get stuck, and no messages for new topics will be processed.

This change adds a call to resume any new listeners after new topics are added.  The fix has been deployed to production in my company's infrastructure and has been confirmed working for a few weeks.
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.

[Bug] Build breaks with boost-libs-1.87.0: fatal error: 'boost/asio/io_service.hpp' file not found
1 participant