Skip to content

Commit db5f7ed

Browse files
committed
stats: remove unsupported_methods statistic
Removing the statistic as it is not reliable, due to the fact that the term "unsupported_methods" is quite generic and does not reflect the actual methods supported by OpenSIPS' script. Reported by Ben Newlin (@bcnewlin) in Ticket OpenSIPS#2460
1 parent 8ec9b41 commit db5f7ed

3 files changed

Lines changed: 0 additions & 6 deletions

File tree

core_stats.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ stat_var* drp_rpls;
5555
stat_var* err_reqs;
5656
stat_var* err_rpls;
5757
stat_var* bad_URIs;
58-
stat_var* unsupported_methods;
5958
stat_var* bad_msg_hdr;
6059
stat_var* slow_msgs;
6160

@@ -70,7 +69,6 @@ stat_export_t core_stats[] = {
7069
{"err_requests" , 0, &err_reqs },
7170
{"err_replies" , 0, &err_rpls },
7271
{"bad_URIs_rcvd", 0, &bad_URIs },
73-
{"unsupported_methods", 0, &unsupported_methods },
7472
{"bad_msg_hdr", 0, &bad_msg_hdr },
7573
{"slow_messages" , 0, &slow_msgs },
7674
{"timestamp", STAT_IS_FUNC, (stat_var**)get_ticks },

core_stats.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,6 @@ extern stat_var* err_rpls;
6868
/*! \brief Set in parse_uri() */
6969
extern stat_var* bad_URIs;
7070

71-
/*! \brief Set in parse_method() */
72-
extern stat_var* unsupported_methods;
73-
7471
/*! \brief Set in get_hdr_field(). */
7572
extern stat_var* bad_msg_hdr;
7673

parser/parse_methods.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ char* parse_method(char* start, char* end, unsigned int* method)
301301
return (start+len);
302302

303303
unknown:
304-
update_stat(unsupported_methods, 1);
305304
*method = METHOD_OTHER;
306305
if(end)
307306
{

0 commit comments

Comments
 (0)