mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-02 03:47:53 +08:00
fixed one bug in acl_cache2_update of acl_cache2.c
This commit is contained in:
parent
09f867e626
commit
b2df701b1f
@ -5,6 +5,7 @@
|
||||
控制是否禁止地址复用,默认是允许地址复用
|
||||
635.2) feature: acl_cache2.c 中 acl_cache2_enter 在添加新元素时,如果缓冲区满
|
||||
则按 LRU 算法将最老的元素删除,以保证缓冲区空间大小
|
||||
636.3) bugfix: acl_cache2.c 中 acl_cache2_update 的过期时间添加有误
|
||||
|
||||
634) 2018.9.21
|
||||
634.1) bugfix: acl_inet_ntop should use ':' as the seperate for IPV4, or the
|
||||
|
@ -481,7 +481,7 @@ ACL_CACHE2_INFO *acl_cache2_update2(ACL_CACHE2 *cache2,
|
||||
acl_myfree(pnode);
|
||||
}
|
||||
|
||||
node.when_timeout = timeout > 0 ? timeout : 0;
|
||||
node.when_timeout = timeout > 0 ? (time(NULL) + timeout) : 0;
|
||||
pnode = (TREE_NODE*) avl_find(&cache->avl, &node, NULL);
|
||||
if (pnode == NULL) {
|
||||
pnode = (TREE_NODE*) acl_mycalloc(1, sizeof(TREE_NODE));
|
||||
|
@ -133,9 +133,10 @@ fi
|
||||
|
||||
%changelog
|
||||
|
||||
* Sat Sep 22 2018 zhengshuxin@qiyi.com 3.4.1-25-20180922.10
|
||||
* Sat Sep 22 2018 zhengshuxin@qiyi.com 3.4.1-25-20180922.13
|
||||
- feature: The elements will be removed according LRU in acl_cache2.c
|
||||
- feature: add flag to control is using SO_REUSEADDR when binding local addr
|
||||
- bugfix: fixed one bug in acl_cache2_update of acl_cache2.c
|
||||
|
||||
* Thu Sep 20 2018 zhengshuxin@qiyi.com 3.4.1-24-20180920.09
|
||||
- bugfix: fixed bugs in lib_fiber for IPV6 supporting
|
||||
|
Loading…
Reference in New Issue
Block a user