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
pull/1701/head
Richard Fuchs 2 years ago
parent 0be5b73887
commit 1de9aee92d

@ -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);

@ -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);
}

@ -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");

Loading…
Cancel
Save