enhance: session manager stat add tcp_segs_consumed
This commit is contained in:
@@ -430,6 +430,7 @@ static void stellar_thread_clean(struct stellar *st)
|
||||
struct stellar_runtime *runtime = &st->runtime;
|
||||
struct stellar_config *config = &st->config;
|
||||
|
||||
STELLAR_LOG_FATAL("cleaning worker thread context ...");
|
||||
for (uint16_t i = 0; i < config->pkt_io_opts.nr_threads; i++)
|
||||
{
|
||||
struct stellar_thread *thread = &runtime->threads[i];
|
||||
@@ -439,6 +440,7 @@ static void stellar_thread_clean(struct stellar *st)
|
||||
ip_reassembly_free(thread->ip_mgr);
|
||||
}
|
||||
}
|
||||
STELLAR_LOG_FATAL("worker thread context cleaned");
|
||||
}
|
||||
|
||||
static int stellar_thread_run(struct stellar *st)
|
||||
@@ -464,6 +466,7 @@ static void stellar_thread_join(struct stellar *st)
|
||||
struct stellar_runtime *runtime = &st->runtime;
|
||||
struct stellar_config *config = &st->config;
|
||||
|
||||
STELLAR_LOG_FATAL("waiting worker thread stop ...");
|
||||
for (uint16_t i = 0; i < config->pkt_io_opts.nr_threads; i++)
|
||||
{
|
||||
struct stellar_thread *thread = &runtime->threads[i];
|
||||
@@ -472,6 +475,7 @@ static void stellar_thread_join(struct stellar *st)
|
||||
usleep(1000); // 1ms
|
||||
}
|
||||
}
|
||||
STELLAR_LOG_FATAL("all worker thread stoped");
|
||||
}
|
||||
|
||||
struct stellar *stellar_new(const char *stellar_cfg_file, const char *plugin_cfg_file, const char *log_cfg_file)
|
||||
|
||||
Reference in New Issue
Block a user