Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix regression on Socket#connect timeout type restriction #14755

Conversation

straight-shoota
Copy link
Member

The timeout parameter of system_connect has an implict type restriction of Time::Span? and we need to convert numeric arguments. This fixes a regression introduced in #14643.

Resolves #14752
Closes #14753

@straight-shoota straight-shoota added kind:bug topic:stdlib:networking kind:regression Something that used to correctly work but no longer works labels Jun 26, 2024
@straight-shoota straight-shoota self-assigned this Jun 26, 2024
@straight-shoota straight-shoota added this to the 1.13.0 milestone Jun 26, 2024
@straight-shoota straight-shoota merged commit 736f04c into crystal-lang:master Jun 27, 2024
61 checks passed
@straight-shoota straight-shoota deleted the fix/socket-connect-timeout-type branch June 27, 2024 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug kind:regression Something that used to correctly work but no longer works topic:stdlib:networking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Breaking change to Crystal::System::Socket#system_connect timeout type
2 participants