调整控制报文发送失败后的日志级别;增加控制报文发送状态计数;
This commit is contained in:
@@ -70,6 +70,8 @@ struct id2field g_tsg_fs2_field[TSG_FS2_MAX]={{0, TSG_FS2_TCP_LINKS, "tcp_links"
|
||||
{0, TSG_FS2_CTRL_CLOSING, "ctrl_close"},
|
||||
{0, TSG_FS2_CTRL_ACTIVE, "ctrl_active"},
|
||||
{0, TSG_FS2_CTRL_RESETALL, "ctrl_rstall"},
|
||||
{0, TSG_FS2_INJECT_CTRL_SUCCESS, "inject_ctrl_succuess"},
|
||||
{0, TSG_FS2_INJECT_CTRL_FAILED, "inject_ctrl_failed"},
|
||||
{0, TSG_FS2_EXCLUSION, "exclusion"},
|
||||
{0, TSG_FS2_APP_DPKT_RESULT, "D_result"},
|
||||
{0, TSG_FS2_APP_Q_RESULT, "Q_result"},
|
||||
|
||||
@@ -43,9 +43,14 @@ static int mpack_send_pkt(const struct streaminfo *a_stream, mpack_writer_t *wri
|
||||
ret = sapp_inject_ctrl_pkt((struct streaminfo *)a_stream, SIO_DEFAULT, *mpack_data, *mpack_size, a_stream->routedir);
|
||||
if (ret == -1)
|
||||
{
|
||||
MESA_handle_runtime_log(g_tsg_para.logger, RLOG_LV_FATAL, "MSGPACK_BUFF_SEND", "An error occurred injecting the data!");
|
||||
FS_operate(g_tsg_para.fs2_handle, g_tsg_para.fs2_field_id[TSG_FS2_INJECT_CTRL_FAILED], 0, FS_OP_ADD, 1);
|
||||
MESA_handle_runtime_log(g_tsg_para.logger, RLOG_LV_DEBUG, "MSGPACK_BUFF_SEND", "An error occurred injecting the data! addr: %s", PRINTADDR(a_stream, g_tsg_para.level));
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
FS_operate(g_tsg_para.fs2_handle, g_tsg_para.fs2_field_id[TSG_FS2_INJECT_CTRL_SUCCESS], 0, FS_OP_ADD, 1);
|
||||
}
|
||||
|
||||
free(*mpack_data);
|
||||
*mpack_data = NULL;
|
||||
*mpack_size = 0;
|
||||
|
||||
@@ -21,6 +21,8 @@ enum TSG_FS2_TYPE
|
||||
TSG_FS2_CTRL_CLOSING,
|
||||
TSG_FS2_CTRL_ACTIVE,
|
||||
TSG_FS2_CTRL_RESETALL,
|
||||
TSG_FS2_INJECT_CTRL_SUCCESS,
|
||||
TSG_FS2_INJECT_CTRL_FAILED,
|
||||
TSG_FS2_EXCLUSION,
|
||||
TSG_FS2_APP_DPKT_RESULT,
|
||||
TSG_FS2_APP_Q_RESULT,
|
||||
|
||||
Reference in New Issue
Block a user