[nginx] Decreased the NGX_HTTP_MAX_SUBREQUESTS limit.

Steven Hartland steven.hartland at multiplay.co.uk
Tue Sep 1 08:18:17 UTC 2015

On 01/09/2015 06:58, Yichun Zhang (agentzh) wrote:
> Hello!
> On Tue, Sep 1, 2015 at 4:29 AM, Valentin Bartenev wrote:
>>   #define NGX_HTTP_MAX_URI_CHANGES           10
>> -#define NGX_HTTP_MAX_SUBREQUESTS           200
>> +#define NGX_HTTP_MAX_SUBREQUESTS           50
> Hmm, this change makes me sad. In our ngx_lua module, for example, we
> allow programatic parallel subrequests via the
> ngx.location.capture_multi() Lua API:
>      https://github.com/openresty/lua-nginx-module#ngxlocationcapture_multi
> We'd better provide larger values in such hard-coded limits rather
> than smaller (unless we provide a way to allow 3rd-party nginx C
> modules to override it).
Same here we have a module which uses dynamic sub-requests to split huge 
file requests in large amounts of smaller ranged requests which this 
change would likely break.


More information about the nginx-devel mailing list