public function setOptions(array $options)
    {
        if ($this->server && $this->server->isRunning()) {
            throw new LogicException('Options cannot be set while the server is running.');
        }

        $this->options = array_diff_key($this->options, $options) + $options;

        if ($this->swoolePort != null) {
            $this->swoolePort->set($this->options);
        }
    }