Skip to content

cpr::LowSpeed Is Not Y2038 Safeย #1174

@COM8

Description

@COM8

Description

cpr::LowSpeed has a 32 bit time value (std::int32_t time;). This is not year 2038 safe. Instead we should replace it with std::chrono for handling time.
Even though it's just the seconds and probably will never happen we should use std::chrono.

Example/How to Reproduce

Not applicable.

Possible Fix

Refactor cpr::LowSpeed to use std::chrono.

Where did you get it from?

GitHub (branch e.g. master)

Additional Context/Your Environment

  • OS: Linux (Fedora 41)
  • Version: 1.11.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions