|
@ -76,6 +76,11 @@ abstract class BaseService { |
|
|
* @var array swoole配置数组 |
|
|
* @var array swoole配置数组 |
|
|
*/ |
|
|
*/ |
|
|
public $config; |
|
|
public $config; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* @var string 日志路径 |
|
|
|
|
|
*/ |
|
|
|
|
|
public $logFile = "/tmp/airpc-log"; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @param string $listen 监听地址 |
|
|
* @param string $listen 监听地址 |
|
@ -89,7 +94,8 @@ abstract class BaseService { |
|
|
'task_worker_num' => $this->taskWorkerNum, |
|
|
'task_worker_num' => $this->taskWorkerNum, |
|
|
'max_request' => $this->maxRequest, |
|
|
'max_request' => $this->maxRequest, |
|
|
'max_conn' => $this->maxConn, |
|
|
'max_conn' => $this->maxConn, |
|
|
'daemonize' => $this->daemonize |
|
|
|
|
|
|
|
|
'daemonize' => $this->daemonize, |
|
|
|
|
|
'log_file' => $this->logFile |
|
|
]; |
|
|
]; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|