From 47992ab5f0ebbb91cea40a504164313800610baa Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 23 Jan 2014 21:26:49 +0500 Subject: [PATCH] tweak event queue size on event socket and speed up fs_cli a little to keep up on busy logging env --- libs/esl/fs_cli.c | 2 +- src/mod/event_handlers/mod_event_socket/mod_event_socket.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/esl/fs_cli.c b/libs/esl/fs_cli.c index 968e647e33..cfa0c09475 100644 --- a/libs/esl/fs_cli.c +++ b/libs/esl/fs_cli.c @@ -810,7 +810,7 @@ static void *msg_thread_run(esl_thread_t *me, void *obj) } warn_stop = 0; } - sleep_ms(1); + //sleep_ms(1); } thread_running = 0; esl_log(ESL_LOG_DEBUG, "Thread Done\n"); diff --git a/src/mod/event_handlers/mod_event_socket/mod_event_socket.c b/src/mod/event_handlers/mod_event_socket/mod_event_socket.c index 8c0c85911a..096939fb89 100644 --- a/src/mod/event_handlers/mod_event_socket/mod_event_socket.c +++ b/src/mod/event_handlers/mod_event_socket/mod_event_socket.c @@ -31,7 +31,7 @@ */ #include #define CMD_BUFLEN 1024 * 1000 -#define MAX_QUEUE_LEN 25000 +#define MAX_QUEUE_LEN 100000 #define MAX_MISSED 500 SWITCH_MODULE_LOAD_FUNCTION(mod_event_socket_load); SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_event_socket_shutdown);