public function onFailureEv($bev = null)
    {
        try {
            if (!$this->connected && !$this->failed) {
                $this->failed = true;
                $this->onFailure();
            }
            $this->connected = false;
        } catch (\Exception $e) {
            Daemon::uncaughtExceptionHandler($e);
        }
    }
public function onFailureEv($bev = null)
    {
        try {
            if (!$this->connected && !$this->failed) {
                $this->failed = true;
                $this->onFailure();
            }
            $this->connected = false;
        } catch (\Exception $e) {
            Daemon::uncaughtExceptionHandler($e);
        }
    }
public function onFailureEv ( $ bev = null ) { try { if ( ! $ this -> connected && ! $ this -> failed ) { $ this -> failed = true ; $ this -> onFailure ( ) ; } $ this -> connected = false ; } catch ( \ Exception $ e ) { Daemon :: uncaughtExceptionHandler ( $ e ) ; } }
Called when the connection failed
@param  EventBufferEvent $bev
@return void
Called when the connection failed