public function setReadTimeout($timeout)
    {
        $this->_options['readTimeout'] = $timeout;

        if ($this->isConnected()) {
            $seconds = floor($this->_options['readTimeout']);
            $microseconds = ($this->_options['readTimeout'] - $seconds) * 1000000;

            stream_set_timeout($this->_socket, $seconds, $microseconds);
        }

        return $this;
    }