aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorBrian P. Hinz <bphinz@users.sf.net>2022-01-29 13:40:28 -0500
committerBrian P. Hinz <bphinz@users.sf.net>2022-01-29 14:02:52 -0500
commit7393e2c7c389b8cacf440d27a4cff8b1f7f426bf (patch)
tree6a36d52726b38ae4189f0cbb36aaf41a92d2d395 /java
parent44f9a4d038026e43d084bb601a337c171348bb36 (diff)
downloadtigervnc-7393e2c7c389b8cacf440d27a4cff8b1f7f426bf.tar.gz
tigervnc-7393e2c7c389b8cacf440d27a4cff8b1f7f426bf.zip
Fix for #1414
Diffstat (limited to 'java')
-rw-r--r--java/com/tigervnc/network/TcpSocket.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/com/tigervnc/network/TcpSocket.java b/java/com/tigervnc/network/TcpSocket.java
index 95f16d3a..22e854f5 100644
--- a/java/com/tigervnc/network/TcpSocket.java
+++ b/java/com/tigervnc/network/TcpSocket.java
@@ -83,8 +83,8 @@ public class TcpSocket extends Socket {
Selector selector = Selector.open();
SelectionKey connect_key =
sock.socket().getChannel().register(selector, SelectionKey.OP_CONNECT);
- // Try for the connection for 250ms
- while (selector.select(250) > 0) {
+ // Try for the connection for 3000ms
+ while (selector.select(3000) > 0) {
while (!result) {
Set keys = selector.selectedKeys();