Module: kamailio Branch: master Commit: 3320ed6df304e45a89d1cb2eba9b3c327008a0d5 URL: https://github.com/kamailio/kamailio/commit/3320ed6df304e45a89d1cb2eba9b3c32...
Author: Walter Doekes walter+github@wjd.nu Committer: Walter Doekes walter+github@wjd.nu Date: 2016-03-09T08:58:53+01:00
websocket: Fix stats "connectons" typo's.
The stats now list:
ws_sip_max_concurrent_connections ws_msrp_max_concurrent_connections
Instead of:
ws_sip_max_concurrent_connectons ws_msrp_max_concurrent_connectons
Note that the latter still exist as aliases to the corrected values for a while.
---
Modified: modules/websocket/ws_mod.c
---
Diff: https://github.com/kamailio/kamailio/commit/3320ed6df304e45a89d1cb2eba9b3c32... Patch: https://github.com/kamailio/kamailio/commit/3320ed6df304e45a89d1cb2eba9b3c32...
---
diff --git a/modules/websocket/ws_mod.c b/modules/websocket/ws_mod.c index 827dd61..e513d09 100644 --- a/modules/websocket/ws_mod.c +++ b/modules/websocket/ws_mod.c @@ -108,9 +108,9 @@ static stat_export_t stats[] = { "ws_current_connections", 0, &ws_current_connections }, { "ws_max_concurrent_connections", 0, &ws_max_concurrent_connections }, { "ws_sip_current_connections", 0, &ws_sip_current_connections }, - { "ws_sip_max_concurrent_connectons", 0, &ws_sip_max_concurrent_connections }, - { "ws_msrp_current_connections", 0, &ws_msrp_current_connections }, - { "ws_msrp_max_concurrent_connectons", 0, &ws_msrp_max_concurrent_connections }, + { "ws_sip_max_concurrent_connections", 0, &ws_sip_max_concurrent_connections }, + { "ws_msrp_current_connections", 0, &ws_msrp_current_connections }, + { "ws_msrp_max_concurrent_connections", 0, &ws_msrp_max_concurrent_connections },
/* ws_frame.c */ { "ws_failed_connections", 0, &ws_failed_connections }, @@ -135,6 +135,10 @@ static stat_export_t stats[] = { "ws_sip_successful_handshakes", 0, &ws_sip_successful_handshakes }, { "ws_msrp_successful_handshakes", 0, &ws_msrp_successful_handshakes },
+ /* legacy typo's, fixed in 4.4 */ + { "ws_sip_max_concurrent_connectons", 0, &ws_sip_max_concurrent_connections }, + { "ws_msrp_max_concurrent_connectons", 0, &ws_msrp_max_concurrent_connections }, + { 0, 0, 0 } };