From c767ca5d3c09d8f64dbfa05e86fde1fd5d702083 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Tue, 26 Dec 2017 20:46:01 +0300 Subject: reworked context priorities Introduced 4 priorities: 0 - management (cli) 1 - starting sessions (default priority) 2 - active sessions 3 - finishing sessions --- accel-pppd/cli/tcp.c | 2 +- accel-pppd/cli/telnet.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'accel-pppd/cli') diff --git a/accel-pppd/cli/tcp.c b/accel-pppd/cli/tcp.c index 051ff84c..270d8cbf 100644 --- a/accel-pppd/cli/tcp.c +++ b/accel-pppd/cli/tcp.c @@ -362,7 +362,7 @@ static void start_server(const char *host, int port) addr.sin_addr.s_addr = inet_addr(host); triton_context_register(&serv_ctx, NULL); - triton_context_set_priority(&serv_ctx, 1); + triton_context_set_priority(&serv_ctx, 0); triton_md_register_handler(&serv_ctx, &serv_hnd); triton_md_enable_handler(&serv_hnd, MD_MODE_READ); triton_context_wakeup(&serv_ctx); diff --git a/accel-pppd/cli/telnet.c b/accel-pppd/cli/telnet.c index 9ef2ea84..33a82e47 100644 --- a/accel-pppd/cli/telnet.c +++ b/accel-pppd/cli/telnet.c @@ -699,7 +699,7 @@ static void start_server(const char *host, int port) addr.sin_addr.s_addr = inet_addr(host); triton_context_register(&serv_ctx, NULL); - triton_context_set_priority(&serv_ctx, 1); + triton_context_set_priority(&serv_ctx, 0); triton_md_register_handler(&serv_ctx, &serv_hnd); triton_md_enable_handler(&serv_hnd, MD_MODE_READ); triton_context_wakeup(&serv_ctx); -- cgit v1.2.3