|
|
|
@ -13,6 +13,7 @@ |
|
|
|
#include <sys/socket.h> |
|
|
|
#include <netinet/in.h> |
|
|
|
#include <sys/resource.h> |
|
|
|
#include <sys/epoll.h> |
|
|
|
#include "log.h" |
|
|
|
#include "loglib.h" |
|
|
|
|
|
|
|
@ -212,6 +213,7 @@ void config_load(int *argc, char ***argv, GOptionEntry *app_entries, const char |
|
|
|
{ "pidfile", 'p', 0, G_OPTION_ARG_FILENAME, &rtpe_common_config_ptr->pidfile, "Write PID to file", "FILE" }, |
|
|
|
{ "foreground", 'f', 0, G_OPTION_ARG_NONE, &rtpe_common_config_ptr->foreground, "Don't fork to background", NULL }, |
|
|
|
{ "thread-stack", 0,0, G_OPTION_ARG_INT, &rtpe_common_config_ptr->thread_stack, "Thread stack size in kB", "INT" }, |
|
|
|
{ "poller-size", 0,0, G_OPTION_ARG_INT, &rtpe_common_config_ptr->poller_size, "Max poller items per iteration", "INT" }, |
|
|
|
{ "evs-lib-path", 0,0, G_OPTION_ARG_FILENAME, &rtpe_common_config_ptr->evs_lib_path, "Location of .so for 3GPP EVS codec", "FILE" }, |
|
|
|
{ NULL, } |
|
|
|
}; |
|
|
|
@ -387,6 +389,8 @@ out: |
|
|
|
if (rtpe_common_config_ptr->thread_stack == 0) |
|
|
|
rtpe_common_config_ptr->thread_stack = 2048; |
|
|
|
|
|
|
|
if (rtpe_common_config_ptr->poller_size <= 0) |
|
|
|
rtpe_common_config_ptr->poller_size = 128; |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|