From e2e7608044bc2a30645eb2f0c38f3659ab6a00a2 Mon Sep 17 00:00:00 2001 From: ly1217 Date: Fri, 18 Oct 2019 21:14:24 -0700 Subject: [PATCH] Optimize name pipe server. --- net/common/rpc-service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/common/rpc-service.c b/net/common/rpc-service.c index ee3e58d..3efa3ee 100644 --- a/net/common/rpc-service.c +++ b/net/common/rpc-service.c @@ -315,7 +315,7 @@ ccnet_start_rpc(CcnetSession *session) #endif /* CCNET_SERVER */ char *path = g_build_filename (session->config_dir, CCNET_SOCKET_NAME, NULL); - SearpcNamedPipeServer *server = searpc_create_named_pipe_server (path, NAMED_PIPE_SERVER_THREAD_POOL_SIZE); + SearpcNamedPipeServer *server = searpc_create_named_pipe_server_with_threadpool (path, NAMED_PIPE_SERVER_THREAD_POOL_SIZE); if (!server) { ccnet_warning ("Failed to create named pipe server.\n"); g_free (path);