]> source.dussan.org Git - tigervnc.git/commitdiff
Fix for #1414
authorBrian P. Hinz <bphinz@users.sf.net>
Sat, 29 Jan 2022 18:40:28 +0000 (13:40 -0500)
committerBrian P. Hinz <bphinz@users.sf.net>
Sat, 29 Jan 2022 19:02:52 +0000 (14:02 -0500)
java/com/tigervnc/network/TcpSocket.java

index 95f16d3a1fa8b6c680d4f212ca0d287da486d22d..22e854f544c8517537ffcafde86b08f6febf2a2d 100644 (file)
@@ -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();