]> git.kaiwu.me - nginx.git/commit
Limit req: number of cleanup calls reduced.
authorValentin Bartenev <vbart@nginx.com>
Mon, 30 Jan 2012 10:01:39 +0000 (10:01 +0000)
committerValentin Bartenev <vbart@nginx.com>
Mon, 30 Jan 2012 10:01:39 +0000 (10:01 +0000)
commit73d0b6a72134552cbcd54f2ee5887d438080b587
treea7c1de2b2f80cc93c13b6ce206606c978268228a
parent8dab3b5a39493fb2803e0391a8ec4d1ee999f966
Limit req: number of cleanup calls reduced.

Doing a cleanup before every lookup seems to be too aggressive. It can lead to
premature removal of the nodes still usable, which increases the amount of work
under a mutex lock and therefore decreases performance.

In order to improve cleanup behavior, cleanup function call has been moved right
before the allocation of a new node.
src/http/modules/ngx_http_limit_req_module.c