diff options
author | Simon Rettberg | 2023-09-26 15:48:47 +0200 |
---|---|---|
committer | Simon Rettberg | 2023-09-26 15:48:47 +0200 |
commit | 98a51047fef8fe217ae15e6c5ea883ae93c2ce71 (patch) | |
tree | 02848a0c2e2be6db044fcd4d91f4e7ae0b3faef7 | |
parent | filetransfer: Mute exception (diff) | |
download | master-sync-shared-98a51047fef8fe217ae15e6c5ea883ae93c2ce71.tar.gz master-sync-shared-98a51047fef8fe217ae15e6c5ea883ae93c2ce71.tar.xz master-sync-shared-98a51047fef8fe217ae15e6c5ea883ae93c2ce71.zip |
filetransfer: 4s connect timeout
-rw-r--r-- | src/main/java/org/openslx/filetransfer/Transfer.java | 2 |
1 files changed, 1 insertions, 1 deletions
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() ); |