[aur-dev] [PATCH v2] aurjson.class.php: Limit number of RPC results

Lukas Fleischer archlinux at cryptocrack.de
Mon Oct 22 12:55:24 EDT 2012


On Sun, Oct 21, 2012 at 03:53:16PM -0400, canyonknight wrote:
> With no limit to the number of results, memory_limit set to 32M
> can easily be exceeded for searches that have a large number of
> results. This results in an HTTP error 500 for those queries.
> 
> Limit results to an amount set within config.inc.php to avoid
> exceeding memory_limit. Introduce new JSON error code for when
> the result limit is hit.
> 
> Fixes FS#31849
> 
> Signed-off-by: canyonknight <canyonknight at gmail.com>
> ---
>  web/lib/aurjson.class.php    | 22 +++++++++++++++++-----
>  web/lib/config.inc.php.proto |  4 ++++
>  2 files changed, 21 insertions(+), 5 deletions(-)

Applied, thanks!

> 
> [...]


More information about the aur-dev mailing list