fix: plugin mananger get TCP segment
This commit is contained in:
@@ -1037,12 +1037,11 @@ void plugin_manager_on_session_ingress(struct session *sess, struct packet *pkt)
|
||||
{
|
||||
case SESSION_TYPE_TCP:
|
||||
session_mq_publish_message_with_priority(sess, plug_mgr_rt->plug_mgr->tcp_topic_id ,(void *)pkt, STELLAR_MQ_PRIORITY_HIGH);
|
||||
if((seg = session_get_tcp_segment(sess)) != NULL)
|
||||
{
|
||||
session_mq_publish_message_with_priority(sess, plug_mgr_rt->plug_mgr->tcp_stream_topic_id ,(void *)seg, STELLAR_MQ_PRIORITY_HIGH);
|
||||
//session_free_tcp_segment(sess, seg);
|
||||
}
|
||||
break;
|
||||
while ((seg = session_get_tcp_segment(sess)) != NULL)
|
||||
{
|
||||
session_mq_publish_message_with_priority(sess, plug_mgr_rt->plug_mgr->tcp_stream_topic_id, (void *)seg, STELLAR_MQ_PRIORITY_HIGH);
|
||||
}
|
||||
break;
|
||||
case SESSION_TYPE_UDP:
|
||||
session_mq_publish_message_with_priority(sess, plug_mgr_rt->plug_mgr->udp_topic_id ,(void *)pkt, STELLAR_MQ_PRIORITY_HIGH);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user