Merge in SNORT/snort3 from ~AAVILASE/snort3:tp_fini_hanging_fix to master
Squashed commit of the following:
commit
5bab58a64439c65206c860a38e7d0bd13583a79d
Author: Andres Avila <aavilase@cisco.com>
Date: Tue Jun 3 16:49:19 2025 -0400
appid: broadcast command for third party tfini during tterm rather than doing it sequentially
ServiceDiscovery::set_thread_local_ftp_service();
}
+void AppIdInspector::third_party_tfini()
+{
+ while (pkt_thread_tp_appid_ctxt->tfini())
+ ;
+}
+
void AppIdInspector::tterm()
{
AppIdStatistics::cleanup();
delete odp_thread_local_ctxt;
odp_thread_local_ctxt = nullptr;
if (pkt_thread_tp_appid_ctxt)
- pkt_thread_tp_appid_ctxt->tfini();
+ third_party_tfini();
if ( snort::HighAvailabilityManager::active() )
AppIdHAManager::tterm();
ServiceDiscovery::reset_thread_local_ftp_service();
AppIdContext ctxt;
static unsigned cached_global_pub_id;
void third_party_tinit();
+ void third_party_tfini();
};
extern const snort::InspectApi appid_inspector_api;