Skip to content

Commit 889131e

Browse files
committed
runtime: shorten thread name to fit in Linux limit
Linux threads 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.
1 parent 0d6c7af commit 889131e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tokio/src/runtime/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ impl Builder {
288288
max_blocking_threads: 512,
289289

290290
// Default thread name
291-
thread_name: std::sync::Arc::new(|| "tokio-runtime-worker".into()),
291+
thread_name: std::sync::Arc::new(|| "tokio-rt-worker".into()),
292292

293293
// Do not set a stack size by default
294294
thread_stack_size: None,

0 commit comments

Comments
 (0)