You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Response checksum validation: std::stringstream per body chunk in WriteData serialises IO threads when the global locale is set #3963
With response checksum validation on (ResponseChecksumValidation::WHEN_SUPPORTED, default), CurlHttpClient's write callback builds every candidate header name with a std::stringstream. It does this for each chunk curl delivers.
std::stringstream could be expensive as it could take a process-wide lock, if std::locale is set globally, i.e.
std::locale locale{std::locale::classic(), new std::num_put<char>()};
(void)std::locale::global(locale);
According to flamegrpah, libstdc++ locks a process-wide mutex on every std::stringstream construction. The mutex contention brings performance degradation, especially when the checksum doesn't exist in the header
Regression Issue
Select this option if this issue appears to be a regression.
Expected Behavior
No performance degradation if checksum validation is ON but no checksum is included in the header
Current Behavior
The mutex contention brings performance degradation, especially when the checksum doesn't exist in the header
(flamegraph upload pending as it is blocked by my company infosec policy)
Reproduction Steps
Set global locale and have checksum validation ON, then send getobject requests to an endpoint which doesn't reply checksum
This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
Activity
Patch AWS SDK curl WriteData to avoid locale mutex contention on S3 G…
sbiscigl commentedon Oct 28, 2026
merged to main, and will be released today under
1.11.919, give it a shot and let me know if you have any questionsphoebusm commentedon Nov 5, 2026
Thank you!
github-actions commentedon Nov 25, 2026
This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.