<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [x] Commit message has the format required by CONTRIBUTING guide
- [x] Commits are split per component (core, individual modules, libs, utils, ...)
- [x] Each component has a single commit (if not, squash them into one commit)
- [x] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [x] Small bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [x] PR should be backported to stable branches
- [x] Tested changes locally
- [x] Related to issue #3263 (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
New params:
- reload_delta: To set the number of seconds that have to be waited before executing a new RPC reload
- cleanup_interval: To set the number of seconds that have to be wait before cleanup the previous values from memory after a RPC reload
The purpose is to avoid problems when accessing data lists while doing an RPC reload.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3271
-- Commit Summary --
* secfilter: cleanup old data after a reload by timer function
-- File Changes --
M src/modules/secfilter/secfilter.c (148)
M src/modules/secfilter/secfilter.h (9)
M src/modules/secfilter/secfilter_db.c (22)
M src/modules/secfilter/secfilter_rpc.c (58)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3271.patchhttps://github.com/kamailio/kamailio/pull/3271.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3271
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3271(a)github.com>
Module: kamailio
Branch: master
Commit: e7b3724d3fc514c8a541a6a7f7fb1a782f21f2e7
URL: https://github.com/kamailio/kamailio/commit/e7b3724d3fc514c8a541a6a7f7fb1a7…
Author: Jose Luis Verdeguer <pepeluxx(a)gmail.com>
Committer: Jose Luis Verdeguer <pepeluxx(a)gmail.com>
Date: 2022-10-22T16:43:26+02:00
secfilter: Added information about two new params in the README file [skip ci]
---
Modified: src/modules/secfilter/doc/secfilter_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/e7b3724d3fc514c8a541a6a7f7fb1a7…
Patch: https://github.com/kamailio/kamailio/commit/e7b3724d3fc514c8a541a6a7f7fb1a7…
---
diff --git a/src/modules/secfilter/doc/secfilter_admin.xml b/src/modules/secfilter/doc/secfilter_admin.xml
index fff4ca3b2c8..48c54868de6 100644
--- a/src/modules/secfilter/doc/secfilter_admin.xml
+++ b/src/modules/secfilter/doc/secfilter_admin.xml
@@ -212,6 +212,47 @@
</programlisting>
</example>
</section>
+
+ <section id="secfilter.p.reload_delta">
+ <title><varname>reload_delta</varname> (integer)</title>
+
+ <para>
+ The number of seconds that have to be waited before executing a new RPC reload.
+ By default there is a rate limiting of maximum one reload in five seconds.
+
+ If set to <emphasis>0</emphasis>, no rate limit is configured.
+ </para>
+ <para><emphasis> Default value is 5</emphasis></para>
+
+ <example>
+ <title>Set <varname>reload_delta</varname> parameter</title>
+
+ <programlisting format="linespecific">
+ ...
+ modparam("secfilter", "reload_delta", 1)
+ ...
+ </programlisting>
+ </example>
+ </section>
+
+ <section id="secfilter.p.cleanup_interval">
+ <title><varname>cleanup_interval</varname> (integer)</title>
+
+ <para>
+ The number of seconds that have to be wait before cleanup the previous values from memory after a RPC reload.
+ </para>
+ <para><emphasis> Default value is 60</emphasis></para>
+
+ <example>
+ <title>Set <varname>cleanup_interval</varname> parameter</title>
+
+ <programlisting format="linespecific">
+ ...
+ modparam("secfilter", "cleanup_interval", 120)
+ ...
+ </programlisting>
+ </example>
+ </section>
</section>
<section>
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [x] Commit message has the format required by CONTRIBUTING guide
- [x] Commits are split per component (core, individual modules, libs, utils, ...)
- [x] Each component has a single commit (if not, squash them into one commit)
- [x] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [x] Small bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [x] PR should be backported to stable branches
- [x] Tested changes locally
- [x] Related to issue #3263 (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
New params:
- eload_delta: To set the number of seconds that have to be waited before executing a new RPC reload
- cleanup_interval: To set the number of seconds that have to be wait before cleanup the previous values from memory after a RPC reload
The purpose is to avoid problems when accessing data lists while doing an RPC reload.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3270
-- Commit Summary --
* secfilter: added locks while check list values
* secfilter: lock position changed
* secfilter: cleanup old data after a reload by timer function
* Merge branch 'master' into pepelux/secfilter
* secfilter: cleanup old data after a reload by timer function
* secfilter: Added information about two new params in the README file [skip ci]
* cleanup old data after a reload by timer function
-- File Changes --
M src/modules/secfilter/doc/secfilter_admin.xml (41)
M src/modules/secfilter/secfilter.c (148)
M src/modules/secfilter/secfilter.h (9)
M src/modules/secfilter/secfilter_db.c (22)
M src/modules/secfilter/secfilter_rpc.c (58)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3270.patchhttps://github.com/kamailio/kamailio/pull/3270.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3270
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3270(a)github.com>
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [x] Commit message has the format required by CONTRIBUTING guide
- [x] Commits are split per component (core, individual modules, libs, utils, ...)
- [x] Each component has a single commit (if not, squash them into one commit)
- [x] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [x] Small bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [x] PR should be backported to stable branches
- [x] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
New params:
- reload_delta: To set the number of seconds that have to be waited before executing a new RPC reload
- cleanup_interval: To set the number of seconds that have to be wait before cleanup the previous values from memory after a RPC reload
The purpose is to avoid problems when accessing data lists while doing an RPC reload.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3269
-- Commit Summary --
* secfilter: added locks while check list values
* secfilter: lock position changed
* secfilter: cleanup old data after a reload by timer function
-- File Changes --
M src/modules/secfilter/secfilter.c (122)
M src/modules/secfilter/secfilter.h (9)
M src/modules/secfilter/secfilter_db.c (22)
M src/modules/secfilter/secfilter_rpc.c (57)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3269.patchhttps://github.com/kamailio/kamailio/pull/3269.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3269
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3269(a)github.com>