public function close($force = false) { UltraMilk_FCGI_Record::write($this->conn, new UltraMilk_FCGI_EndRequestRecord($this->version, $this->requestId, $this->status, UltraMilk_FCGI_EndRequestRecord::REQUEST_COMPLETE)); if ($this->flags !== UltraMilk_FCGI_BeginRequestRecord::KEEP_CONN || $force == true) { fclose($this->conn); } }
public function close() { if ($this->closed) { return; } UltraMilk_FCGI_Record::write($this->conn, new UltraMilk_FCGI_Record($this->version, $this->type, $this->requestId, null)); }