public function gcCheck() { if ($this->stopped) { return; } $max = $this->appInstance->config->gcmaxresponsesize->value; if ($max > 0 && $this->bytesSent > $max) { $this->stop(); } }