Skip to content

When Internet is not available socket_connect throws a 'Host name lookup failure' PHP error #34

Description

@daN4cat

In no Internet available condition, the socket_connect call in Socket.php createConnection function throws the following error:

A PHP Error was encountered
Servetity: Warning

Message: socket_connect(): Host loockup failed [-10002]: Host name lookup failure
Filename: Adapter/Socket.php

Line Number: 32

Backtrace:
[...]

that ignoring the possible false return, and any exception throwing and try&catch.

Is there any way to avoid that error message in that specific call?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions