Skip to content

Enable MultiHomed for IO::Socket::SSL#61

Merged
oalders merged 1 commit intolibwww-perl:masterfrom
atoomic:multihomed
Jul 19, 2023
Merged

Enable MultiHomed for IO::Socket::SSL#61
oalders merged 1 commit intolibwww-perl:masterfrom
atoomic:multihomed

Conversation

@atoomic
Copy link
Contributor

@atoomic atoomic commented Nov 5, 2020

Automatically fall back to IPv4 if IPv6 doesn't work

Automatically fall back to IPv4 if IPv6 doesn't work
@skaji
Copy link
Member

skaji commented Nov 5, 2020

@atoomic Could you explain context for this change in more detail?

For IPv4 and IPv6, I believe IO::Socket::IP should take care of them without MultiHomed argument.

@atoomic
Copy link
Contributor Author

atoomic commented Nov 6, 2020

Using the MultiHomed option for Socket allows to fall back to IPv4 if IPv6 fails.

Some servers have an IPv6 address assigned but lack usable IPv6 networking.
Enforcing 'MultiHomed' by default fixes this issue.

note that this can still be disabled if needed by providing MultiHomed => undef to _extra_sock_opts
we could also consider enabling it if needed, but IMO using a true value for MultiHomed should be the default behavior

cc: @skaji

@oalders
Copy link
Member

oalders commented Jul 19, 2023

Thanks, @atoomic!

@oalders oalders merged commit 5150d50 into libwww-perl:master Jul 19, 2023
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.

3 participants