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

Support empty string in Addrinfo #1714

Open
herwinw opened this issue Jan 24, 2024 · 0 comments
Open

Support empty string in Addrinfo #1714

herwinw opened this issue Jan 24, 2024 · 0 comments
Assignees
Labels
bug Something isn't working ruby specs This needs to be implemented so we can be a real Ruby

Comments

@herwinw
Copy link
Member

herwinw commented Jan 24, 2024

I noticed this when trying to find the correct error message:

In MRI:

Addrinfo.new(''.b)
=> #<Addrinfo: empty-sockaddr>

In Natalie:

Addrinfo.new(''.b)
Traceback (most recent call last):
        2: from (repl):1:in `block in block in block'
        1: from (repl):1:in `new'
(repl):1:in `initialize': bad sockaddr (ArgumentError)

This behaviour is currently not covered by the ruby specs.

@herwinw herwinw added bug Something isn't working ruby specs This needs to be implemented so we can be a real Ruby labels Jan 24, 2024
@herwinw herwinw self-assigned this Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ruby specs This needs to be implemented so we can be a real Ruby
Projects
None yet
Development

No branches or pull requests

1 participant