Skip to content

Upgrading from 1.10.2 to 1.11.0 created large amounts of latency in API calls #1133

@honeysuckle1234

Description

@honeysuckle1234

Description

When upgrading from cpr 1.10.2 to 1.11.0, our cpr::PostAsync calls started showing a large amount of latency between being sent and being received, ~1 minute in most cases, but sometimes would be indefinitely delayed.

Example/How to Reproduce

  1. Create a call: cpr::AsyncResponse response = cpr::PostAsync(cpr::Url{url}, cpr::Body{body}, headers);
  2. Wait for the request to come in: response .wait_for(0ms) == std::future_status::timeout
  3. Observe the time for the message to be 'sent' to being 'received' by another service.

Possible Fix

We downgraded back to 1.10.2, but installed Curl separately to upgrade that to 8.10.0.

Where did you get it from?

GitHub (branch e.g. master)

Additional Context/Your Environment

  • OS: Linux
  • Version: 1.10.2
  • Curl was not the issue, as using 8.10.0 worked fine in 1.10.2 and didn't produce latency.

Metadata

Metadata

Assignees

Labels

No Issue Activity 👻No activity for more than 30 days. About to be closed.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions