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

2012-10-22 Thread Lukas Fleischer
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

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

2012-10-21 Thread canyonknight
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