diff options
| author | luwenpeng <[email protected]> | 2024-11-18 18:33:19 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2024-11-19 18:28:40 +0800 |
| commit | c2e9275a9e56f7d0567fc2512d5cab67932d39da (patch) | |
| tree | 518da54d7f34ab4d6be2ece2808bcb85184ef572 /infra/stellar_core.c | |
| parent | 746d7fca060cd3dec350657fb1f61317e7fc32fa (diff) | |
remove session_manager_subscribe_xxx() API; convert session closing events to pseudo packets
when a session is closed, use the packet manager to create a pseudo packet,
set the session to be closed as packet Exdata, and schedule it to the packet forwarding stage.
when the pseudo packet free, the session will be free.
Diffstat (limited to 'infra/stellar_core.c')
| -rw-r--r-- | infra/stellar_core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/infra/stellar_core.c b/infra/stellar_core.c index bdb730e..6272241 100644 --- a/infra/stellar_core.c +++ b/infra/stellar_core.c @@ -95,6 +95,8 @@ static void *worker_thread(void *arg) } } + CORE_LOG_FATAL("worker thread %d cleaning", thread_id); + module_manager_unregister_thread(mod_mgr, thread_id); mq_runtime_free(mq_rt); |
