mirror of
https://github.com/haiwen/ccnet-server.git
synced 2025-08-18 04:17:09 +00:00
Optimize name pipe server.
This commit is contained in:
parent
f9954f6e7b
commit
e2e7608044
@ -315,7 +315,7 @@ ccnet_start_rpc(CcnetSession *session)
|
|||||||
#endif /* CCNET_SERVER */
|
#endif /* CCNET_SERVER */
|
||||||
|
|
||||||
char *path = g_build_filename (session->config_dir, CCNET_SOCKET_NAME, NULL);
|
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) {
|
if (!server) {
|
||||||
ccnet_warning ("Failed to create named pipe server.\n");
|
ccnet_warning ("Failed to create named pipe server.\n");
|
||||||
g_free (path);
|
g_free (path);
|
||||||
|
Loading…
Reference in New Issue
Block a user