From 4461ce8d2152e3e1ed03e825c15d1f360c170197 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 26 May 2023 13:25:49 +0200 Subject: BFTP: Shorten thread name Linux thread names can only be 11 characters, so in order to not truncate thread names in tools such as htop, shorten the thread name a bit so the running ID that gets appended at the end will always fit. --- src/main/java/org/openslx/filetransfer/Listener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/openslx/filetransfer/Listener.java b/src/main/java/org/openslx/filetransfer/Listener.java index bee650c..7a7393a 100644 --- a/src/main/java/org/openslx/filetransfer/Listener.java +++ b/src/main/java/org/openslx/filetransfer/Listener.java @@ -27,7 +27,7 @@ public class Listener private Thread acceptThread = null; private final int readTimeoutMs; private final ExecutorService processingPool = new ThreadPoolExecutor( 0, 8, 5, TimeUnit.MINUTES, new SynchronousQueue(), - new PrioThreadFactory( "BFTP-Init" ) ); + new PrioThreadFactory( "BFTP-BS" ) ); private static final byte CONNECTING_PEER_WANTS_TO_UPLOAD = 85; // ASCII 'U' = 85. private static final byte CONNECTING_PEER_WANTS_TO_DOWNLOAD = 68; // ASCII 'D' = 68. -- cgit v1.2.3-55-g7522