Lines Matching refs:request
422 * Outstanding request statuses keyed by request id
424 * Each request is an array with following form:
480 * alive at the end of a request and additionally set SO_KEEPALIVE or not.
706 $request = '';
708 $request .= $this->buildNvpair($info, '');
710 $this->transport->write($this->buildPacket(self::GET_VALUES, $request, 0));
721 * Execute a request to the FastCGI application and return response body
730 public function request(array $params, $stdin)
737 * Execute a request to the FastCGI application and return request data
755 * Execute a request to the FastCGI application asynchronously
757 * This sends request to application and returns the assigned ID for that request.
761 * In that case it is possible that a delayed response to a request made by a previous script
762 * invocation comes back on this socket and is mistaken for response to request made with same
763 * ID during this request.
782 $request = $this->buildPacket(
794 $request .= $this->buildPacket(self::PARAMS, $paramsRequest, $id);
796 $request .= $this->buildPacket(self::PARAMS, '', $id);
799 $request .= $this->buildPacket(self::STDIN, $stdin, $id);
801 $request .= $this->buildPacket(self::STDIN, '', $id);
807 if ($this->transport->write($request) === false || $this->transport->flush() === false) {
817 throw new \Exception('Failed to write request to socket');
850 * Blocking call that waits for response data of the specific request
863 throw new \Exception('Invalid request id given');
933 throw new \Exception('New request rejected; too busy [OVERLOADED]');
944 * Blocking call that waits for response to specific request