Cyberduck Mountain Duck CLI

Changeset 6464


Ignore:
Timestamp:
Jul 29, 2010 4:03:07 PM (8 years ago)
Author:
dkocher
Message:

Fix #5073. Set timeout from connection preferences for SSH socket.

Location:
trunk/source/ch/ethz/ssh2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/ch/ethz/ssh2/Connection.java

    r6397 r6464  
    654654
    655655                tm = new TransportManager(hostname, port);
    656 
     656        tm.setSoTimeout(connectTimeout);
    657657                tm.setConnectionMonitors(connectionMonitors);
    658658
  • trunk/source/ch/ethz/ssh2/transport/TransportManager.java

    r6397 r6464  
    339339                        InetAddress addr = createInetAddress(hostname);
    340340                        sock.connect(new InetSocketAddress(addr, port), connectTimeout);
    341                         sock.setSoTimeout(0);
    342341                        return;
    343342                }
     
    351350                        InetAddress addr = createInetAddress(pd.proxyHost);
    352351                        sock.connect(new InetSocketAddress(addr, pd.proxyPort), connectTimeout);
    353                         sock.setSoTimeout(0);
    354352
    355353                        /* OK, now tell the proxy where we actually want to connect to */
Note: See TracChangeset for help on using the changeset viewer.
swiss made software