From 98a51047fef8fe217ae15e6c5ea883ae93c2ce71 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 26 Sep 2023 15:48:47 +0200 Subject: filetransfer: 4s connect timeout --- src/main/java/org/openslx/filetransfer/Transfer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/openslx/filetransfer/Transfer.java b/src/main/java/org/openslx/filetransfer/Transfer.java index cf4c6d3..aebd3ce 100644 --- a/src/main/java/org/openslx/filetransfer/Transfer.java +++ b/src/main/java/org/openslx/filetransfer/Transfer.java @@ -52,7 +52,7 @@ public abstract class Transfer transferSocket = sslSocketFactory.createSocket(); } transferSocket.setSoTimeout( readTimeoutMs ); - transferSocket.connect( new InetSocketAddress( host, port ) ); + transferSocket.connect( new InetSocketAddress( host, port ), 4000 ); outStream = new DataOutputStream( transferSocket.getOutputStream() ); dataFromServer = new DataInputStream( transferSocket.getInputStream() ); -- cgit v1.2.3-55-g7522