提交 5c8d9c33 编写于 作者: K Kozlov Dmitry

connlimit: if burst timeout was detected don't increase burst counter

上级 2356f41b
......@@ -49,6 +49,8 @@ int __export connlimit_check(uint64_t key)
it->ts = ts;
list_move(&it->entry, &items);
it->count = 0;
r = 0;
break;
}
it->count++;
if (it->count >= conf_burst) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册