Skip to content

HttpClient::MakeRequest(shared_ptr<HttpRequest>) Can return Null SharedPtr, but why? #25

Closed
@cjhanks

Description

@cjhanks

It is possible (it happened to me anyways) for calls to the HttpClient to return a shared_ptr which is null with no apparent error being set in the library. Recreating the case may be a little difficult (it's deep in my code).

https://github.com/awslabs/aws-sdk-cpp/blob/master/aws-cpp-sdk-core/source/http/curl/CurlHttpClient.cpp#L153

    CURL* connectionHandle = m_curlHandleContainer.AcquireCurlHandle();

    if (connectionHandle)
    {
    /// snip
    }
    // No else clause, no error set!

Apparently the m_curlHandleContainer is returning a null handle. Why might that be and what information would be useful for you in debugging?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions