Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed bugs of the limit_req module #1

Closed
wants to merge 1 commit into from
Closed

fixed bugs of the limit_req module #1

wants to merge 1 commit into from

Conversation

zhuzhaoyuan
Copy link
Member

  • "limit_req zone=one;" was incorrectly disallowed
  • "limit_req on;" was allowed
  • the value of "burst" could not be zero

* "limit_req zone=one;" was incorrectly disallowed
* "limit_req on;" was allowed
* the value of "burst" could not be zero
@ghost ghost assigned monadbobo May 26, 2012
@@ -1004,7 +1007,7 @@ static char *ngx_http_limit_req_whitelist(ngx_conf_t *cf, ngx_command_t *cmd,
if (ngx_strncmp(value[i].data, "burst=", 6) == 0) {

burst = ngx_atoi(value[i].data + 6, value[i].len - 6);
if (burst <= 0) {
if (burst == NGX_ERROR) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

burst must not be zero.

@zhuzhaoyuan
Copy link
Member Author

I don't understand, is it the default value of zero?

@monadbobo
Copy link
Member

if burst is zero, and then burst value is invalid.

@monadbobo
Copy link
Member

I will fix it later.

@monadbobo monadbobo closed this May 31, 2012
yaoweibin referenced this pull request in yaoweibin/tengine Aug 6, 2012
add test scripts for dso module.
@yaoweibin yaoweibin mentioned this pull request Sep 19, 2012
dinic added a commit that referenced this pull request Mar 19, 2013
updated docs for session sticky module
chobits pushed a commit that referenced this pull request Jan 29, 2019
@sunaihui sunaihui mentioned this pull request Apr 10, 2019
mrpre pushed a commit that referenced this pull request Jun 12, 2020
lianglli added a commit that referenced this pull request Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants