From f5750337223db4339c21e42c56115cbef5efde2c Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 21 Sep 2023 11:32:52 +0200 Subject: [filetransfer] Don't print stack trace if handshake times out --- src/main/java/org/openslx/filetransfer/Listener.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/openslx/filetransfer/Listener.java b/src/main/java/org/openslx/filetransfer/Listener.java index 7a7393a..0cbd921 100644 --- a/src/main/java/org/openslx/filetransfer/Listener.java +++ b/src/main/java/org/openslx/filetransfer/Listener.java @@ -143,6 +143,8 @@ public class Listener } catch ( SSLException e ) { Transfer.safeClose( connection ); log.warn( "SSL error when acceping client " + connection.getInetAddress().getHostAddress() ); + } catch ( SocketTimeoutException e ) { + // No reason to log, probably - connection where client did nothing after connecting. } catch ( Exception e ) { Transfer.safeClose( connection ); log.warn( "Error handling client", e ); -- cgit v1.2.3-55-g7522