|
|
@@ -45,6 +45,7 @@ Anca-Maria Vamanu
|
|
|
3.20. max_notify_body_length (int)
|
|
|
3.21. fetch_rows (integer)
|
|
|
3.22. disable_remote_presence (integer)
|
|
|
+ 3.23. max_backend_subs (integer)
|
|
|
|
|
|
4. Functions
|
|
|
|
|
|
@@ -80,9 +81,10 @@ Anca-Maria Vamanu
|
|
|
1.20. Set max_notify_body_length parameter
|
|
|
1.21. Set fetch_rows parameter
|
|
|
1.22. Set disable_remote_presence parameter
|
|
|
- 1.23. rls_handle_subscribe usage
|
|
|
- 1.24. rls_handle_notify usage
|
|
|
- 1.25. rls_update_subs usage
|
|
|
+ 1.23. Set max_backend_subscribes parameter
|
|
|
+ 1.24. rls_handle_subscribe usage
|
|
|
+ 1.25. rls_handle_notify usage
|
|
|
+ 1.26. rls_update_subs usage
|
|
|
|
|
|
Chapter 1. Admin Guide
|
|
|
|
|
|
@@ -118,6 +120,7 @@ Chapter 1. Admin Guide
|
|
|
3.20. max_notify_body_length (int)
|
|
|
3.21. fetch_rows (integer)
|
|
|
3.22. disable_remote_presence (integer)
|
|
|
+ 3.23. max_backend_subs (integer)
|
|
|
|
|
|
4. Functions
|
|
|
|
|
|
@@ -198,6 +201,7 @@ Chapter 1. Admin Guide
|
|
|
3.20. max_notify_body_length (int)
|
|
|
3.21. fetch_rows (integer)
|
|
|
3.22. disable_remote_presence (integer)
|
|
|
+ 3.23. max_backend_subs (integer)
|
|
|
|
|
|
3.1. db_url(str)
|
|
|
|
|
|
@@ -488,6 +492,22 @@ modparam("rls", "fetch_rows", 1000)
|
|
|
modparam("rls", "disable_remote_presence", 1)
|
|
|
...
|
|
|
|
|
|
+3.23. max_backend_subs (integer)
|
|
|
+
|
|
|
+ When set to a non-zero value RLS will limit the number of back-end
|
|
|
+ SUBSCRIBEs for each RLS SUBSCRIBE to this value. Leaving this at the
|
|
|
+ default of zero means no limit. When people have large contact lists
|
|
|
+ RLS will make lots of back-end subscriptions. This can easily overload
|
|
|
+ a system. This option allows you to limit the number of back-end
|
|
|
+ SUBSCRIBEs to help prevent overload.
|
|
|
+
|
|
|
+ Default value is 0
|
|
|
+
|
|
|
+ Example 1.23. Set max_backend_subscribes parameter
|
|
|
+...
|
|
|
+modparam("rls", "max_backend_subscribes", 30)
|
|
|
+...
|
|
|
+
|
|
|
4. Functions
|
|
|
|
|
|
4.1. rls_handle_subscribe()
|
|
|
@@ -503,7 +523,7 @@ modparam("rls", "disable_remote_presence", 1)
|
|
|
|
|
|
This function can be used from REQUEST_ROUTE.
|
|
|
|
|
|
- Example 1.23. rls_handle_subscribe usage
|
|
|
+ Example 1.24. rls_handle_subscribe usage
|
|
|
...
|
|
|
For presence and rls on the same machine:
|
|
|
modparam("rls", "to_presence_code", 10)
|
|
|
@@ -531,7 +551,7 @@ For rls only:
|
|
|
|
|
|
This function can be used from REQUEST_ROUTE.
|
|
|
|
|
|
- Example 1.24. rls_handle_notify usage
|
|
|
+ Example 1.25. rls_handle_notify usage
|
|
|
...
|
|
|
if(method=="NOTIFY")
|
|
|
rls_handle_notify();
|
|
|
@@ -550,7 +570,7 @@ if(method=="NOTIFY")
|
|
|
|
|
|
This function can be used from ANY_ROUTE.
|
|
|
|
|
|
- Example 1.25. rls_update_subs usage
|
|
|
+ Example 1.26. rls_update_subs usage
|
|
|
...
|
|
|
Within event_route[xhttp:request]:
|
|
|
case "PUT":
|