mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-07 00:00:09 +02:00
runtime: shorten default thread name to fit in Linux limit (#7880)
Linux thread names are truncated at 15 characters. Currently, Tokio threads show up as "tokio-runtime-w", whereas shortening "runtime" to "rt" would make the thread name perfectly fit in the 15 character limit.
This commit is contained in:
@@ -288,7 +288,7 @@ impl Builder {
|
||||
max_blocking_threads: 512,
|
||||
|
||||
// Default thread name
|
||||
thread_name: std::sync::Arc::new(|| "tokio-runtime-worker".into()),
|
||||
thread_name: std::sync::Arc::new(|| "tokio-rt-worker".into()),
|
||||
|
||||
// Do not set a stack size by default
|
||||
thread_stack_size: None,
|
||||
|
||||
Reference in New Issue
Block a user