From e957724c57a1e789b5bdffc28ceb1febd7e5a2d9 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 17 Sep 2024 13:40:19 +0200 Subject: fileserver: Also silence socket timeouts --- 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 93d2a76..d1af4ac 100644 --- a/src/main/java/org/openslx/filetransfer/Listener.java +++ b/src/main/java/org/openslx/filetransfer/Listener.java @@ -144,7 +144,7 @@ public class Listener } catch ( SSLException e ) { Transfer.safeClose( connection ); log.warn( "SSL error when acceping client " + connection.getInetAddress().getHostAddress() ); - } catch ( SocketException e ) { + } catch ( SocketTimeoutException | SocketException e ) { // No reason to log, probably - connection where client did nothing after connecting. Transfer.safeClose( connection ); } catch ( Exception e ) { -- cgit v1.2.3-55-g7522