Skip to content

Commit

Permalink
Fix TSan report around condvar in host resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-milovidov committed Jun 23, 2024
1 parent ff61797 commit c6b1533
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,11 @@ bool GeneralHTTPCredentialsProvider::ShouldCreateGeneralHTTPProvider(const Aws::
shouldAllow = !addresses.empty();
hostResolved = true;
}
hostResolverCV.notify_one();
else
{
std::unique_lock<std::mutex> lock(hostResolverMutex);
hostResolverCV.notify_one();
}
};
pHostResolver->ResolveHost(authority.c_str(), onHostResolved);
std::unique_lock<std::mutex> lock(hostResolverMutex);
Expand Down

0 comments on commit c6b1533

Please sign in to comment.