src/Connection/PhpiredisSocketConnection.php
private function emitSocketError()
    {
        $errno = socket_last_error();
        $errstr = socket_strerror($errno);

        $this->disconnect();

        $this->onConnectionError(trim($errstr), $errno);
    }
private function emitSocketError()
    {
        $errno = socket_last_error();
        $errstr = socket_strerror($errno);

        $this->disconnect();

        $this->onConnectionError(trim($errstr), $errno);
    }
private function emitSocketError ( ) { $ errno = socket_last_error ( ) ; $ errstr = socket_strerror ( $ errno ) ; $ this -> disconnect ( ) ; $ this -> onConnectionError ( trim ( $ errstr ) , $ errno ) ; }
Helper method used to throw exceptions on socket errors.
Helper method used to throw exceptions on socket errors .