Changes between Version 1 and Version 2 of Ticket #586, comment 6


Ignore:
Timestamp:
06/30/14 18:55:19 (6 years ago)
Author:
Yichun Zhang

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #586, comment 6

    v1 v2  
    1 Ideally, this could be an internal feature on the level of the NGINX C API such that 3rd-party modules can choose to use different limits for different requests on-the-fly. This is much more efficient than the nginx variable approach IMHO.
     1Ideally, this could be an internal feature on the level of the NGINX C API such that 3rd-party modules can choose to use different limits for different requests on-the-fly. This is much more efficient than the nginx variable approach IMHO. And in the context of the ngx_lua module, we can do something like below in Lua:
     2
     3    ngx.req.read_body(4096)  -- limiting the max body length for this call to 4096 bytes