Exemple #1
0
 public function onReceiveData()
 {
     $this->debug('Processing request');
     try {
         $request = $this->readRequestHeader();
         self::$request = $request;
         $this->responseHeaders = array();
         $this->serveRequest($request);
     } catch (Gpf_Net_Server_Http_RequestException $e) {
         $this->send($e->getResponse());
     } catch (Exception $e) {
         $this->driver->closeConnection();
         $this->error('Error while processing request: ' . $e->getMessage() . "\nTrace:\n" . $e->getTraceAsString());
     }
 }