Lines Matching refs:request
99 * Outstanding request statuses keyed by request id
101 * Each request is an array with following form:
154 * alive at the end of a request
178 * request for efficiency
450 $request = '';
452 $request .= $this->buildNvpair($info, '');
454 fwrite($this->_sock, $this->buildPacket(self::GET_VALUES, $request, 0));
465 * Execute a request to the FastCGI application and return response body
474 public function request(array $params, $stdin)
481 * Execute a request to the FastCGI application and return request data
498 * Execute a request to the FastCGI application asynchronously
500 * This sends request to application and returns the assigned ID for that request.
504 * In that case it is possible that a delayed response to a request made by a previous script
505 * invocation comes back on this socket and is mistaken for response to request made with same
506 * ID during this request.
524 $request = $this->buildPacket(
536 $request .= $this->buildPacket(self::PARAMS, $paramsRequest, $id);
538 $request .= $this->buildPacket(self::PARAMS, '', $id);
541 $request .= $this->buildPacket(self::STDIN, $stdin, $id);
543 $request .= $this->buildPacket(self::STDIN, '', $id);
545 if (fwrite($this->_sock, $request) === false || fflush($this->_sock) === false) {
555 throw new \Exception('Failed to write request to socket');
588 * Blocking call that waits for response data of the specific request
601 throw new \Exception('Invalid request id given');
671 throw new \Exception('New request rejected; too busy [OVERLOADED]');
682 * Blocking call that waits for response to specific request