From 7393e2c7c389b8cacf440d27a4cff8b1f7f426bf Mon Sep 17 00:00:00 2001 From: "Brian P. Hinz" Date: Sat, 29 Jan 2022 13:40:28 -0500 Subject: [PATCH] Fix for #1414 --- java/com/tigervnc/network/TcpSocket.java | 4 ++-- 1 file 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(); -- 2.39.5