Skip to content

Honor the requested address even given hostname#6943

Merged
headius merged 1 commit intojruby:masterfrom
headius:hostname_address_addrinfo
Nov 16, 2021
Merged

Honor the requested address even given hostname#6943
headius merged 1 commit intojruby:masterfrom
headius:hostname_address_addrinfo

Conversation

@headius
Copy link
Member

@headius headius commented Nov 16, 2021

Previously if the hostname was given it was looked-up rather than
being used with the requested address. The new logic will use the
hostname if alone or hostname plus address otherwise.

Also included in this patch, the array accesses now use entry
which will return a nil for missing items. Previous use of eltOk
would raise a ConcurrencyError if the array was not long enough.

Previously if the hostname was given it was looked-up rather than
being used with the requested address. The new logic will use the
hostname if alone or hostname plus address otherwise.

Also included in this patch, the array accesses now use `entry`
which will return a nil for missing items. Previous use of `eltOk`
would raise a ConcurrencyError if the array was not long enough.
@headius headius added this to the JRuby 9.3.2.0 milestone Nov 16, 2021
@headius headius merged commit f07a13a into jruby:master Nov 16, 2021
@headius headius deleted the hostname_address_addrinfo branch November 16, 2021 18:00
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