version 4.0.7 09/3109/1
authoraa7133@att.com <aa7133@att.com>
Thu, 2 Apr 2020 08:40:09 +0000 (11:40 +0300)
committeraa7133@att.com <aa7133@att.com>
Thu, 2 Apr 2020 08:42:20 +0000 (11:42 +0300)
remove stat counter on sending (core dump)

Change-Id: If6dd602af6f82a268982515191a89f95aa0ed139
Signed-off-by: aa7133@att.com <aa7133@att.com>
RIC-E2-TERMINATION/sctpThread.cpp

index f9a56dd..a6a18ea 100644 (file)
@@ -421,7 +421,8 @@ void sendTermInit(sctp_params_t &sctpParams) {
         rmr_bytes2xact(msg, tx, txLen);
         msg = rmr_send_msg(sctpParams.rmrCtx, msg);
         if (msg == nullptr) {
-            msg = rmr_alloc_msg(sctpParams.rmrCtx, sctpParams.myIP.length());
+            //TODO fix it
+            msg = rmr_alloc_msg(sctpParams.rmrCtx, sctpParams.ka_message_length);
         } else if (msg->state == 0) {
             rmr_free_msg(msg);
             if (mdclog_level_get() >=  MDCLOG_INFO) {
@@ -983,7 +984,7 @@ int sendSctpMsg(ConnectedCU_t *peerInfo, ReportingMessages_t &message, Sctp_Map_
             m->erase(key);
             return -1;
         }
-        message.statCollector->incSentMessage(string(message.message.enodbName));
+        //message.statCollector->incSentMessage(string(message.message.enodbName));
         message.message.direction = 'D';
         // send report.buffer of size
         buildJsonMessage(message);