-
Notifications
You must be signed in to change notification settings - Fork 76
Comparing changes
Open a pull request
base repository: apache/pulsar-client-cpp
base: v3.4.1
head repository: apache/pulsar-client-cpp
compare: v3.4.2
- 6 commits
- 22 files changed
- 1 contributor
Commits on Dec 6, 2023
-
Gather the macOS binaries when releasing (#355)
(cherry picked from commit 0bbc155)
Configuration menu - View commit details
-
Copy full SHA for 478d3c3 - Browse repository at this point
Copy the full SHA 478d3c3View commit details -
Fix HTTP lookup segfault when the redirect host cannot be resolved (#356
) ### Motivation When the host of the redirect URL cannot be resolved, segmentation fault will happen: https://github.com/apache/pulsar-client-cpp/blob/0bbc15502905d19c630d237b5e102bfb996bb098/lib/CurlWrapper.h#L173-L175 In this case, `curl` will be `nullptr`. Assigning a nullptr to a `std::string` is an undefined behavior that might cause segfault. ### Modifications Check if `url` is nullptr in `CurlWrapper::get` and before assigning it to the `redirectUrl` field. Improve the `HTTPLookupService::sendHTTPRequest` method by configuring the `maxLookupRedirects` instead of a loop and print more detailed error messages. (cherry picked from commit d209482)
Configuration menu - View commit details
-
Copy full SHA for 6192987 - Browse repository at this point
Copy the full SHA 6192987View commit details -
Install Version.h when installing by CMakeLists (#361)
### Motivation The macOS pre-built binaries don't include the Version.h generated from CMake. It's because `cmake --target install` does not install the `Version.h`, which is generated by `configure_file`. ### Modifications Install the `Version.h`. (cherry picked from commit 751c807)
Configuration menu - View commit details
-
Copy full SHA for 8595f97 - Browse repository at this point
Copy the full SHA 8595f97View commit details -
Fix accessing destroyed objects in the callback of async_wait (#362)
Fixes #358 Fixes #359 ### Motivation `async_wait` is not used correctly in some places. A callback that captures the `this` pointer or reference to `this` is passed to `async_wait`, if this object is destroyed when the callback is called, an invalid memory access will happen. ### Modifications Use the following pattern in all `async_wait` calls. ```c++ std::weak_ptr<T> weakSelf{shared_from_this()}; timer_->async_wait([weakSelf](/* ... */) { if (auto self = weakSelf.lock()) { self->foo(); } }); ``` (cherry picked from commit 24ab12c)
Configuration menu - View commit details
-
Copy full SHA for 6cb391a - Browse repository at this point
Copy the full SHA 6cb391aView commit details -
Fix tlsTrustCertsFilePath config is not applied for OAuth2 (#364)
### Motivation #313 has reverted the fix of #190, which applies the `tlsTrustCertsFilePath` config for OAuth2 authentication. The macOS pre-built libraries are affected most because the bundled CA path is empty. ### Modification Apply the `tlsTrustCertsFilePath` for OAuth2. (cherry picked from commit 27cba3e)
Configuration menu - View commit details
-
Copy full SHA for afe54da - Browse repository at this point
Copy the full SHA afe54daView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1cb1bf8 - Browse repository at this point
Copy the full SHA 1cb1bf8View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v3.4.1...v3.4.2