function __construct($host, $port, $timeout = 0)
 {
     $this->sw = swoole_server_create($host, $port, self::$sw_mode, SWOOLE_SOCK_TCP);
     $this->host = $host;
     $this->port = $port;
     \Swoole\Error::$stop = false;
     \Swoole_js::$return = true;
     $this->swooleSetting = array('timeout' => 2.5, 'backlog' => 128, 'log_file' => '/tmp/swoole.log');
 }