reactor packet I/O & duplicated packet filter & evicted session filter

This commit is contained in:
luwenpeng
2024-03-09 19:28:14 +08:00
parent ee35a26a9d
commit 512dfddd03
79 changed files with 1974 additions and 2093 deletions

View File

@@ -36,7 +36,7 @@ void session_pool_free(struct session_pool *pool)
}
}
struct session *session_pool_alloc(struct session_pool *pool)
struct session *session_pool_pop(struct session_pool *pool)
{
if (pool == NULL)
{
@@ -56,7 +56,7 @@ struct session *session_pool_alloc(struct session_pool *pool)
return sess;
}
void session_pool_free(struct session_pool *pool, struct session *sess)
void session_pool_push(struct session_pool *pool, struct session *sess)
{
if (pool == NULL || sess == NULL)
{