Module: sip-router
Branch: kamailio_3.0
Commit: f20be7f89fe240b85fe3600bb9e32b6c996eab87
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f20be7f…
Author: Libor Chocholaty <libor(a)iptel.org>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed Dec 23 17:06:36 2009 +0100
sctp: stats: don't increment ASSOC_SHUTDOWN on COMM_LOST
Signed-off-by: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
(cherry picked from commit 642ff762480e3c16ef417b106ed5a2b64d126d88)
---
sctp_server.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/sctp_server.c b/sctp_server.c
index c966ad3..9ff43ba 100644
--- a/sctp_server.c
+++ b/sctp_server.c
@@ -2218,9 +2218,12 @@ again:
dst_blacklist_su(BLST_ERR_SEND, PROTO_SCTP, su, 0);
#endif /* USE_DST_BLACKLIST */
/* no break */
+ goto comm_lost_cont; /* do not increment counters for
+ SCTP_SHUTDOWN_COMP */
case SCTP_SHUTDOWN_COMP:
- atomic_dec(sctp_conn_no);
SCTP_STATS_ASSOC_SHUTDOWN();
+comm_lost_cont:
+ atomic_dec(sctp_conn_no);
#ifdef SCTP_CONN_REUSE
/* connection down*/
if (likely(cfg_get(sctp, sctp_cfg, assoc_tracking)))