Skip to content

multi: cap expire times to INT_MAX internally - #22579

Closed
bagder wants to merge 1 commit into
masterfrom
bagder/cap-expire
Closed

bagder wants to merge 1 commit into
masterfrom
bagder/cap-expire

Conversation

@bagder

@bagder bagder commented Aug 14, 2026

Copy link
Copy Markdown
Member

When the time-out value is passed to the outside world it needs to fit in a signed 32-bit variable (on Windows and 32-bit architectures) anyway. Also, this is 3.5 weeks and we should not knowingly set timeouts that long anyway.

The previous cap introduced in 3089e7e was only partial.

@bagder
bagder marked this pull request as ready for review August 14, 2026 07:53
@bagder
bagder requested review from icing and a balanced review from Copilot August 14, 2026 07:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Caps internal multi-handle expiration times at INT_MAX.

Changes:

  • Adds timeout capping in Curl_expire_ex().
  • Documents the signed 32-bit limit.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread lib/multi.c Outdated
When the time-out value is passed to the outside world it needs to fit
in a signed 32-bit variable (on Windows and 32-bit architectures)
anyway. Also, this is 3.5 weeks and we should not knowingly set timeouts
that long anyway.

The previous cap introduced in 3089e7e was only partial.

Closes #22579
@bagder
bagder force-pushed the bagder/cap-expire branch from 1902fb5 to fa7f38e Compare August 14, 2026 08:02
@bagder bagder closed this in a3aaca1 Aug 14, 2026
@bagder
bagder deleted the bagder/cap-expire branch August 14, 2026 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants