[sr-dev] git:master:3320ed6d: websocket: Fix stats "connectons" typo's.

Walter Doekes walter+github at wjd.nu
Wed Mar 9 11:02:10 CET 2016


Module: kamailio
Branch: master
Commit: 3320ed6df304e45a89d1cb2eba9b3c327008a0d5
URL: https://github.com/kamailio/kamailio/commit/3320ed6df304e45a89d1cb2eba9b3c327008a0d5

Author: Walter Doekes <walter+github at wjd.nu>
Committer: Walter Doekes <walter+github at 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/3320ed6df304e45a89d1cb2eba9b3c327008a0d5.diff
Patch: https://github.com/kamailio/kamailio/commit/3320ed6df304e45a89d1cb2eba9b3c327008a0d5.patch

---

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 }
 };
 




More information about the sr-dev mailing list