Exception thrown in Aws::Http::CurlHttpClient::OverrideOptionsOnConnectionHandle leaves library in an invalid state #3145
Labels
Cmake
Cmake related submissions
feature-request
A feature should be added or improved.
p3
This is a minor priority issue
Describe the bug
When subclassing from Aws::Http::CurlHttpClient and overriding OverrideOptionsOnConnectionHandle, if this method throws an exception:
Expected Behavior
An exception, including STL exceptions, thrown from the method is handled in a way that cleans up the connection attempt appropriately
Current Behavior
Relevant call stack:
Reproduction Steps
Tested on Windows; setting the native CA option is required there to get the requests to succeed.
Possible Solution
Additional Information/Context
An official mechanism for
OverrideOptionsOnConnectionHandle
to report a failure would also help.AWS CPP SDK version used
1.11.116
Compiler and Version used
Visual Studio 2022: Microsoft (R) C/C++ Optimizing Compiler Version 19.41.34123 for x64
Operating System and version
Windows 11
The text was updated successfully, but these errors were encountered: