Commit Graph

34 Commits

Author SHA1 Message Date
luwenpeng
c2e9275a9e 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.
2024-11-19 18:28:40 +08:00
luwenpeng
492a7fb8ea add packet type raw and pseudo 2024-11-13 14:43:38 +08:00
luwenpeng
d0a8685914 feature: add session monitor, support 'show session id/all/info' command 2024-11-07 19:13:35 +08:00
lijia
e734af76d8 rebase onto develop-2.0 2024-11-07 18:30:58 +08:00
luwenpeng
8ddef31bb5 bugfix: if miss TCP SYN packet, use TCP SYN-ACK packet init C2S tcp reassembly recv_next 2024-11-05 16:14:02 +08:00
yangwei
7f81e46522 🦄 refactor(stellar_module to module): simplify stellar module to module 2024-11-05 10:22:22 +08:00
luwenpeng
da9e15264d rename session_get0_current_packet() to session_get_current_packet() 2024-11-01 15:36:18 +08:00
luwenpeng
159ad20ea5 packet manager support output fieldstat 2024-11-01 15:34:30 +08:00
luwenpeng
89971d4b0a packet IO support output fieldstat 2024-11-01 15:34:07 +08:00
luwenpeng
d56cda3d9a session manager support output fieldstat 2024-11-01 15:24:22 +08:00
luwenpeng
03864c9731 Add state to the on_session_message parameter.
* When state is closed, it implies that packet is null and the session will be destroyed
2024-10-25 19:15:45 +08:00
luwenpeng
4061d5a942 move stellar/session_manager.h into stellar/session.h 2024-10-25 14:38:51 +08:00
luwenpeng
e2c212fb71 move stellar/packet_manager.h into stellar/packet.h 2024-10-25 13:19:58 +08:00
luwenpeng
e0b8732a15 Optimize log output 2024-10-24 16:22:18 +08:00
luwenpeng
1e71122521 feature: session mananger publish ctrl message; Enhance session debugger module 2024-10-23 16:23:36 +08:00
luwenpeng
3d4e6a2cd5 feature: session manager support subscribe session free message 2024-10-23 14:19:37 +08:00
luwenpeng
3f3059b40f refactor: packet manager and session manager add on_thread_init/on_thread_exit entry 2024-10-23 10:10:15 +08:00
luwenpeng
fd3cc20554 feature: packet IO support IP reassembly 2024-10-21 10:49:41 +08:00
yangwei
6e7bb30630 🦄 refactor(polling manager): merge polling into module manager 2024-10-18 11:16:42 +08:00
杨威
70d21f28c3 Rebase dev 2.0 2024-10-11 06:08:50 +00:00
luwenpeng
2e35a79528 Export the packet manager runtime API for easier testing 2024-10-10 09:55:00 +08:00
luwenpeng
c5d7208c11 Added session debugger module for debugging session messages 2024-10-09 16:27:52 +08:00
luwenpeng
0f082d975e stellar registers packet_manager as a module; session_manager registers polling callback 2024-10-09 10:02:42 +08:00
luwenpeng
eccd6e102d bugfix: function name 2024-09-25 12:03:45 +08:00
luwenpeng
b3ddebf770 refactor(main loop): compiled 2024-09-20 18:41:32 +08:00
luwenpeng
94f1913e3e refactor(session manager): turning the session manager into a stellar module 2024-09-20 17:06:10 +08:00
luwenpeng
620019cf8e refactor(session manager): rename original session_manager to session_manager_runtime 2024-09-20 16:59:19 +08:00
luwenpeng
46307bb271 rename session_private.h to session_internal.h 2024-09-20 16:59:19 +08:00
luwenpeng
e0ecee73b3 refactor(session manager): replace dep/list/list.h with sys/queue.h 2024-09-13 18:07:40 +08:00
luwenpeng
a8206cffc0 rename flow_direction to flow_type 2024-09-02 17:49:33 +08:00
luwenpeng
9069dceae7 built snowflake into the session manager 2024-09-02 16:54:18 +08:00
luwenpeng
82cb1eaeeb optimize session manager config 2024-08-30 18:56:36 +08:00
luwenpeng
338dcf93e5 modify session manager related configuration 2024-08-30 18:56:33 +08:00
luwenpeng
18827c6de9 refactor(infra/session_manager): from *.cpp to *.c 2024-08-28 18:00:37 +08:00