src/Leevel/Protocol/Process/HotOverload.php
public function handle(IServer $server): void
    {
        while (true) {
            sleep(1);

            $newMd5 = $this->md5();
            $this->count++;

            if ($this->md5 && $newMd5 !== $this->md5) {
                $this->log('The Swoole server will reload.');

                $this->count = 0;
                $this->reloading = true;
            }

            if (true === $this->reloading && $this->count > $this->after) {
                $this->reload($server);
            }

            $this->md5 = $newMd5;
        }
    }
public function handle(IServer $server): void
    {
        while (true) {
            sleep(1);

            $newMd5 = $this->md5();
            $this->count++;

            if ($this->md5 && $newMd5 !== $this->md5) {
                $this->log('The Swoole server will reload.');

                $this->count = 0;
                $this->reloading = true;
            }

            if (true === $this->reloading && $this->count > $this->after) {
                $this->reload($server);
            }

            $this->md5 = $newMd5;
        }
    }
响应句柄.

@param \Leevel\Protocol\IServer $server