diff options
author | Simon Rettberg | 2023-05-26 13:25:49 +0200 |
---|---|---|
committer | Simon Rettberg | 2023-05-26 13:25:49 +0200 |
commit | 4461ce8d2152e3e1ed03e825c15d1f360c170197 (patch) | |
tree | c4a9738ff877d231720d8addd760117ba603ebe2 | |
parent | TBinaryProtocolSafe: Silence more annoying messages (diff) | |
download | master-sync-shared-4461ce8d2152e3e1ed03e825c15d1f360c170197.tar.gz master-sync-shared-4461ce8d2152e3e1ed03e825c15d1f360c170197.tar.xz master-sync-shared-4461ce8d2152e3e1ed03e825c15d1f360c170197.zip |
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.
-rw-r--r-- | src/main/java/org/openslx/filetransfer/Listener.java | 2 |
1 files changed, 1 insertions, 1 deletions
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<Runnable>(), - 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. |