Skip to content

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

Open
PRIMITIFA wants to merge 1 commit into
httprb:mainfrom
PRIMITIFA:fix/upgrading-timeout-forms
Open

PRIMITIFA wants to merge 1 commit into
httprb:mainfrom
PRIMITIFA:fix/upgrading-timeout-forms

Conversation

@PRIMITIFA

Copy link
Copy Markdown

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.

This branch has not been deployed

No deployments
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.

1 participant