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.
This commit is contained in:
@@ -17,7 +17,7 @@ extern "C"
|
||||
|
||||
#define RX_BURST_MAX 32
|
||||
#define MAX_THREAD_NUM 256 // limit by snowflake
|
||||
#define SYNC_STAT_INTERVAL_MS 1000
|
||||
#define SYNC_STAT_INTERVAL_MS 1 // TODO
|
||||
|
||||
#define ATOMIC_INC(x) __atomic_fetch_add(x, 1, __ATOMIC_RELAXED)
|
||||
#define ATOMIC_DEC(x) __atomic_fetch_sub(x, 1, __ATOMIC_RELAXED)
|
||||
|
||||
Reference in New Issue
Block a user