自主协议库编译通过
This commit is contained in:
@@ -202,7 +202,7 @@ void closeChannel(chnl_usr_t *chnl_usr)
|
||||
|
||||
mvl_free_req_ctrl(chnl_usr->m_reqCtrl);
|
||||
|
||||
chnl_usr->net_info->user_ext = NULL;
|
||||
chnl_usr->net_info->user_info = NULL;
|
||||
chnl_usr->net_info = NULL;
|
||||
|
||||
|
||||
@@ -229,7 +229,7 @@ ST_VOID Callback_channel_disconnect_ind(MVL_NET_INFO * NetInfo, ST_INT discType)
|
||||
{
|
||||
chnl_usr_t *chnl_usr;
|
||||
|
||||
chnl_usr = (chnl_usr_t*)NetInfo->user_ext;
|
||||
chnl_usr = (chnl_usr_t*)NetInfo->user_info;
|
||||
|
||||
if ( chnl_usr ) {
|
||||
if(chnl_usr->m_state == CHANNEL_CONNECTING)
|
||||
@@ -248,7 +248,7 @@ ST_VOID Callback_channel_disconnect_ind(MVL_NET_INFO * NetInfo, ST_INT discType)
|
||||
|
||||
|
||||
chnl_usr->net_info = NULL;
|
||||
NetInfo->user_ext = NULL;
|
||||
NetInfo->user_info = NULL;
|
||||
|
||||
}
|
||||
printf(" Callback_channel_disconnect_ind ,NetInfo = %x",NetInfo);
|
||||
@@ -1703,7 +1703,7 @@ void CheckNextNotConnectedChannel()
|
||||
chnl_usr->m_reqCtrl = NULL;
|
||||
|
||||
chnl_usr->m_state = CHANNEL_CONNECTED;
|
||||
chnl_usr->net_info->user_ext = chnl_usr;
|
||||
chnl_usr->net_info->user_info = chnl_usr;
|
||||
|
||||
all_rcb_info = (ALL_RCB_INFO *)chk_calloc(1, sizeof (ALL_RCB_INFO));
|
||||
all_rcb_info->rpt_typeids = &g_rpt_typeids;
|
||||
@@ -1863,7 +1863,7 @@ void CheckNextNotConnectedChannel()
|
||||
echo_warn3( "CHANNEL_DISCONNECTING done %s:%d,NetInfo= %x ",chnl_usr->ip_str,chnl_usr->chnl->port,chnl_usr->net_info);
|
||||
mvl_free_req_ctrl(chnl_usr->m_reqCtrl);
|
||||
if(chnl_usr->net_info)
|
||||
chnl_usr->net_info->user_ext = NULL;
|
||||
chnl_usr->net_info->user_info = NULL;
|
||||
|
||||
chnl_usr->m_reqCtrl = NULL;
|
||||
chnl_usr->net_info = NULL;
|
||||
@@ -1891,7 +1891,7 @@ void CheckNextNotConnectedChannel()
|
||||
|
||||
echo_warn2( "CHANNEL_DISCONNECTING reqCtrl->done未完成,but time over 180 secs, close channel IP %s,NetInfo= %x ",chnl_usr->ip_str,chnl_usr->net_info);
|
||||
mvl_free_req_ctrl(chnl_usr->m_reqCtrl);
|
||||
chnl_usr->net_info->user_ext = NULL;
|
||||
chnl_usr->net_info->user_info = NULL;
|
||||
|
||||
mms_release_connection(chnl_usr->net_info);
|
||||
chnl_usr->net_info->rem_vmd = NULL;
|
||||
|
||||
Reference in New Issue
Block a user