Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 public function close()
 {
     if ($this->closed) {
         return;
     }
     UltraMilk_FCGI_Record::write($this->conn, new UltraMilk_FCGI_Record($this->version, $this->type, $this->requestId, null));
 }