summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2024-09-17 13:40:19 +0200
committerSimon Rettberg2024-09-17 13:40:19 +0200
commite957724c57a1e789b5bdffc28ceb1febd7e5a2d9 (patch)
treec0d05f8ba8c5eca61ca122d086c7ebfb607c497b
parent[filserver] Add missing .close in error path (diff)
downloadmaster-sync-shared-e957724c57a1e789b5bdffc28ceb1febd7e5a2d9.tar.gz
master-sync-shared-e957724c57a1e789b5bdffc28ceb1febd7e5a2d9.tar.xz
master-sync-shared-e957724c57a1e789b5bdffc28ceb1febd7e5a2d9.zip
fileserver: Also silence socket timeouts
-rw-r--r--src/main/java/org/openslx/filetransfer/Listener.java2
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 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 ) {