Skip to content

Provide a hook between resolve() and stream_socket_client() in DnsSocketConnector #114

Description

@nicolas-grekas

Follow up of symfony/symfony#54179 (comment)

Reading DnsSocketConnector, there is no easy way currently to hook between resolve() and stream_socket_client(). Providing a custom resolver doesn't help because of the inet_pton($host) shortcut.

Hooking here is useful for e.g. Symfony's NoPrivateNetworkHttpClient so that it can filter the remote host before trying to connect to it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions