From: Brian P. Hinz Date: Sat, 29 Jan 2022 18:40:28 +0000 (-0500) Subject: Fix for #1414 X-Git-Tag: v1.12.90~52 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7393e2c7c389b8cacf440d27a4cff8b1f7f426bf;p=tigervnc.git Fix for #1414 --- 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();