This commit is contained in:
2021-04-23 12:25:21 +08:00
parent 6332e9e251
commit 0376fbd7c7
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -225,13 +225,11 @@ class Response extends HttpService
{ {
$sendData = $this->setHeaders($status, $sendData); $sendData = $this->setHeaders($status, $sendData);
if (mb_strlen($sendData) >= 134217728) { if (mb_strlen($sendData) >= 134217728) {
var_dump($sendData);
$this->response->end(''); $this->response->end('');
} else { } else {
$this->response->end($sendData); $this->response->end($sendData);
} }
$this->response = null; $this->response = null;
unset($this->response);
return $sendData; return $sendData;
} }
+1 -1
View File
@@ -61,7 +61,7 @@ class Zookeeper extends Process
*/ */
public function onHandler(\Swoole\Process $process): void public function onHandler(\Swoole\Process $process): void
{ {
$ticker = Config::get('crontab.ticker', 50) / 1000; $ticker = Config::get('crontab.ticker', 100) / 1000;
$redis = Snowflake::app()->getRedis(); $redis = Snowflake::app()->getRedis();
while (true) { while (true) {
$range = $this->loadCarobTask($redis); $range = $this->loadCarobTask($redis);