Lines Matching refs:request
98 * Outstanding request statuses keyed by request id
100 * Each request is an array with following form:
143 * alive at the end of a request
167 * request for efficiency
411 $request = '';
413 $request .= $this->buildNvpair($info, '');
415 fwrite($this->_sock, $this->buildPacket(self::GET_VALUES, $request, 0));
426 * Execute a request to the FastCGI application
432 public function request(array $params, $stdin)
439 * Execute a request to the FastCGI application asyncronously
441 * This sends request to application and returns the assigned ID for that request.
445 * In that case it is possible that a delayed response to a request made by a previous script
446 … * invocation comes back on this socket and is mistaken for response to request made with same ID
447 * during this request.
463 $request = $this->buildPacket(self::BEGIN_REQUEST
473 $request .= $this->buildPacket(self::PARAMS, $paramsRequest, $id);
475 $request .= $this->buildPacket(self::PARAMS, '', $id);
478 $request .= $this->buildPacket(self::STDIN, $stdin, $id);
480 $request .= $this->buildPacket(self::STDIN, '', $id);
482 if (fwrite($this->_sock, $request) === false || fflush($this->_sock) === false) {
492 throw new \Exception('Failed to write request to socket');
504 * Blocking call that waits for response to specific request
513 throw new \Exception('Invalid request id given');
583 throw new \Exception('New request rejected; too busy [OVERLOADED]');