Skip to content

Correct the mixed timeout forms example in UPGRADING.md - #870

Merged
sferik merged 1 commit into
httprb:mainfrom
PRIMITIFA:fix/upgrading-timeout-forms
Dec 1, 2026
Merged

sferik merged 1 commit into
httprb:mainfrom
PRIMITIFA:fix/upgrading-timeout-forms

Conversation

@PRIMITIFA

Copy link
Copy Markdown
Contributor

The "Stricter timeout options parsing" section says HTTP.timeout(read: 5, write_timeout: 3) raises an ArgumentError, but on 6.0.4 it is accepted and normalizes to read_timeout: 5, write_timeout: 3. PerOperation.normalize_options only rejects the short and long form of the same option, for example read: 5, read_timeout: 3, which raises "can't pass both read and read_timeout". This updates the example and the comment to show the case that actually raises.

@sferik

sferik commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Thanks for catching and fixing this!

@sferik
sferik merged commit a590092 into httprb:main Dec 1, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants