Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ Increment the:
request body on a 32-bit build
[#4630](https://github.com/open-telemetry/opentelemetry-cpp/pull/4630)

* [BUG] Fix a data race on the curl operation's last result code
[#4618](https://github.com/open-telemetry/opentelemetry-cpp/pull/4618)

## [1.29.0] 2026-09-13

* [RELEASE] Bump main branch to 1.29.0-dev (#4259)
Expand Down
8 changes: 4 additions & 4 deletions ext/src/http/client/curl/http_operation_curl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,8 @@ HttpOperation::~HttpOperation()
{
if (HttpOperationAccessor::GetThreadId(*async_data_) != std::this_thread::get_id())
{
async_data_->result_future.wait();
last_curl_result_ = async_data_->result_future.get();
// PerformCurlMessage() stores this, then calls the Cleanup() that sets the promise.
static_cast<void>(async_data_->result_future.get());
}
}
break;
Expand All @@ -533,8 +533,8 @@ void HttpOperation::Finish()
// We should not wait in callback from Cleanup()
if (HttpOperationAccessor::GetThreadId(*async_data_) != std::this_thread::get_id())
{
async_data_->result_future.wait();
last_curl_result_ = async_data_->result_future.get();
// PerformCurlMessage() stores this, then calls the Cleanup() that sets the promise.
static_cast<void>(async_data_->result_future.get());
}
}
}
Expand Down
Loading