Skip to content

Reusing http_client instance with proxies #170

Open
@glukacsy

Description

@glukacsy

Hi,

We ran into this weird issue that when we are trying to reuse an http_client instance with an http_config where proxy is set, the first time the request succeeds, but the subsequent times we get error 56, ""Failed to connect to any resolved proxy endpoint".

Tracked this down to http_client_asio.cpp and it almost looks like that the endpoints iterator is incremented the first time and then on subsequent requests points to the end?

Any thoughts?

Also, can you please confirm that in general it is OK (in fact desired) to reuse http_clients for the same base address and then bombard the same instance with ->request calls vs creating a new http_client per request?

regards,
Gergely

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions