protected function makeSocket($timeout = 1)
    {
        return fsockopen(
            'tcp://' . $this->host,
            $this->port,
            $errno,
            $errstr,
            $timeout
        );
    }