summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorSimon Rettberg2024-01-16 14:58:14 +0100
committerSimon Rettberg2024-01-16 14:58:14 +0100
commit013d1769410257f47952735961d613cb36280e6f (patch)
tree3036c5ff4116d6b11808b316ae4fc01495ed201f /src/main/java
parentfiletransfer: 4s connect timeout (diff)
downloadmaster-sync-shared-013d1769410257f47952735961d613cb36280e6f.tar.gz
master-sync-shared-013d1769410257f47952735961d613cb36280e6f.tar.xz
master-sync-shared-013d1769410257f47952735961d613cb36280e6f.zip
Silence fileserver connection drop spam
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/openslx/filetransfer/Listener.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/openslx/filetransfer/Listener.java b/src/main/java/org/openslx/filetransfer/Listener.java
index 0cbd921..fc990fc 100644
--- a/src/main/java/org/openslx/filetransfer/Listener.java
+++ b/src/main/java/org/openslx/filetransfer/Listener.java
@@ -3,6 +3,7 @@ package org.openslx.filetransfer;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.net.Socket;
+import java.net.SocketException;
import java.net.SocketTimeoutException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.RejectedExecutionException;
@@ -143,7 +144,7 @@ public class Listener
} catch ( SSLException e ) {
Transfer.safeClose( connection );
log.warn( "SSL error when acceping client " + connection.getInetAddress().getHostAddress() );
- } catch ( SocketTimeoutException e ) {
+ } catch ( SocketException e ) {
// No reason to log, probably - connection where client did nothing after connecting.
} catch ( Exception e ) {
Transfer.safeClose( connection );