From 1de9aee92deb95aac8456d63534e4d43f802e397 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 20 Jul 2023 09:05:36 -0400 Subject: [PATCH] MT#55283 limit cname length Thread comm names are limited in length. Make sure not to try to set names that are too long. Change-Id: I5e41e1d0d4b65af41fc0b356ad54df86df6f0b82 --- daemon/call.c | 4 ++-- daemon/dtls.c | 2 +- daemon/main.c | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/daemon/call.c b/daemon/call.c index 5495af76f..80b7da7e5 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -488,7 +488,7 @@ destroy: if (xh) thread_create_detach_prio(xmlrpc_kill_calls, xh, rtpe_config.idle_scheduling, - rtpe_config.idle_priority, "XMLRPC callback"); + rtpe_config.idle_priority, "XMLRPC"); if (url_prefix) free(url_prefix); if (url_suffix) @@ -527,7 +527,7 @@ int call_init() { mutex_init(&rtpe_call_iterators[i].lock); thread_create_looper(call_timer, rtpe_config.idle_scheduling, - rtpe_config.idle_priority, "kill calls timer", 1000000); + rtpe_config.idle_priority, "kill calls", 1000000); if (mqtt_publish_scope() != MPS_NONE) mqtt_timer_start(&global_mqtt_timer, NULL, NULL); diff --git a/daemon/dtls.c b/daemon/dtls.c index 3c525dc95..b25df8dc2 100644 --- a/daemon/dtls.c +++ b/daemon/dtls.c @@ -422,7 +422,7 @@ out: void dtls_timer(void) { thread_create_looper(__dtls_timer, rtpe_config.idle_scheduling, - rtpe_config.idle_priority, "DTLS refresh timer", + rtpe_config.idle_priority, "DTLS refresh", ((long long) CERT_EXPIRY_TIME / 7) * 1000000); } diff --git a/daemon/main.c b/daemon/main.c index 96cd901f6..202c63183 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -1313,7 +1313,7 @@ int main(int argc, char **argv) { ilog(LOG_INFO, "Startup complete, version %s", RTPENGINE_VERSION); - thread_create_detach(sighandler, NULL, "signal handler"); + thread_create_detach(sighandler, NULL, "signals"); /* load monitoring thread */ thread_create_looper(load_thread, rtpe_config.idle_scheduling, @@ -1321,19 +1321,19 @@ int main(int argc, char **argv) { /* separate thread for releasing ports (sockets), which are scheduled for clearing */ thread_create_looper(release_closed_sockets, rtpe_config.idle_scheduling, - rtpe_config.idle_priority, "release closed sockets", 1000000); + rtpe_config.idle_priority, "release socks", 1000000); /* separate thread for update of running min/max call counters */ thread_create_looper(call_rate_stats_updater, rtpe_config.idle_scheduling, - rtpe_config.idle_priority, "call rate stats", 1000000); + rtpe_config.idle_priority, "call stats", 1000000); /* separate thread for ports iterations (stats update from the kernel) functionality */ thread_create_looper(kernel_stats_updater, rtpe_config.idle_scheduling, - rtpe_config.idle_priority, "kernel stats updater", 1000000); + rtpe_config.idle_priority, "kernel stats", 1000000); /* separate thread for ice slow timer functionality */ thread_create_looper(ice_slow_timer, rtpe_config.idle_scheduling, - rtpe_config.idle_priority, "ice slow timer", 1000000); + rtpe_config.idle_priority, "ICE slow", 1000000); if (!is_addr_unspecified(&rtpe_config.redis_ep.address) && initial_rtpe_config.redis_delete_async) thread_create_detach(redis_delete_async_loop, NULL, "redis async");