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

Add support for IPv6 #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

bp-rest
Copy link
Contributor

@bp-rest bp-rest commented May 25, 2022

Next to IPv6 suport socket handling is reworked to better operate in
presence of multiple servers (IPv4 or IPv6) where either some
destination networks are unreachable or otherwise fail on sendmsg
(e.g. due to local firewall rules).

It makes use of two sockets (one for IPv4 communication, one for IPv6
communication) that are created as needed (e.g. no IPv6 socket created
if there is no IPv6 server address).

When adding servers by host names, multiple entries are added, one for
each IP address found for the hostname (be it IPv4 or IPv6).

NOTE: Windows compatibility is unknown.

See also PHP bug #59619 and issue #4

Next to IPv6 suport socket handling is reworked to better operate in
presence of multiple servers (IPv4 or IPv6) where either some
destination networks are unreachable or otherwise fail on sendmsg
(e.g. due to local firewall rules).

It makes use of two sockets (one for IPv4 communication, one for IPv6
communication) that are created as needed (e.g. no IPv6 socket created
if there is no IPv6 server address).

When adding servers by host names, multiple entries are added, one for
each IP address found for the hostname (be it IPv4 or IPv6).

NOTE: Windows compatibility is unknown.

See also PHP bug #59619
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