public int getTimeout() throws IOException { return session.getTimeout(); }
@Override public Socket createSocket(String host, int port) throws IOException, UnknownHostException { return createSocketUtil(host, port, sftpConfig.getBindAddress(), session.getTimeout()); } });
long t = getTimeout(); while(in_kex){ if(t>0L &&
public void write(Packet packet) throws Exception { long t = getTimeout(); while (in_kex) { if (t > 0L && (System.currentTimeMillis() - kex_start_time) > t && !in_prompt ) { throw new JSchException("timeout in waiting for rekeying process."); } byte command = packet.buffer.getCommand(); if (command == SSH_MSG_KEXINIT || command == SSH_MSG_NEWKEYS || command == SSH_MSG_KEXDH_INIT || command == SSH_MSG_KEXDH_REPLY || command == SSH_MSG_KEX_DH_GEX_GROUP || command == SSH_MSG_KEX_DH_GEX_INIT || command == SSH_MSG_KEX_DH_GEX_REPLY || command == SSH_MSG_KEX_DH_GEX_REQUEST || command == SSH_MSG_DISCONNECT) { break; } try { Thread.sleep(10); } catch (InterruptedException e) { // } } _write(packet); }
public void write(Packet packet) throws Exception{ // System.err.println("in_kex="+in_kex+" "+(packet.buffer.getCommand())); long t = getTimeout(); while(in_kex){ if(t>0L && (System.currentTimeMillis()-kex_start_time)>t && !in_prompt ){ throw new JSchException("timeout in waiting for rekeying process."); } byte command=packet.buffer.getCommand(); //System.err.println("command: "+command); if(command==SSH_MSG_KEXINIT || command==SSH_MSG_NEWKEYS || command==SSH_MSG_KEXDH_INIT || command==SSH_MSG_KEXDH_REPLY || command==SSH_MSG_KEX_DH_GEX_GROUP || command==SSH_MSG_KEX_DH_GEX_INIT || command==SSH_MSG_KEX_DH_GEX_REPLY || command==SSH_MSG_KEX_DH_GEX_REQUEST || command==SSH_MSG_DISCONNECT){ break; } try{Thread.sleep(10);} catch(java.lang.InterruptedException e){}; } _write(packet); }
public void write(Packet packet) throws Exception{ // System.err.println("in_kex="+in_kex+" "+(packet.buffer.getCommand())); long t = getTimeout(); while(in_kex){ if(t>0L && (System.currentTimeMillis()-kex_start_time)>t && !in_prompt ){ throw new JSchException("timeout in waiting for rekeying process."); } byte command=packet.buffer.getCommand(); //System.err.println("command: "+command); if(command==SSH_MSG_KEXINIT || command==SSH_MSG_NEWKEYS || command==SSH_MSG_KEXDH_INIT || command==SSH_MSG_KEXDH_REPLY || command==SSH_MSG_KEX_DH_GEX_GROUP || command==SSH_MSG_KEX_DH_GEX_INIT || command==SSH_MSG_KEX_DH_GEX_REPLY || command==SSH_MSG_KEX_DH_GEX_REQUEST || command==SSH_MSG_DISCONNECT){ break; } try{Thread.sleep(10);} catch(java.lang.InterruptedException e){}; } _write(packet); }
execChannel.connect(session.getTimeout());
execChannel.connect(session.getTimeout());
execChannel.connect(session.getTimeout());
execChannel.connect(session.getTimeout());
/*public*/ /*synchronized*/ void write(Packet packet, Channel c, int length) throws Exception{ long t = getTimeout(); while(true){ if(in_kex){
/*public*/ /*synchronized*/ void write(Packet packet, Channel c, int length) throws Exception{ long t = getTimeout(); while(true){ if(in_kex){
void write(Packet packet, Channel c, int length) throws Exception { long t = getTimeout(); while (true) { if (in_kex) {
/*public*/ /*synchronized*/ void write(Packet packet, Channel c, int length) throws Exception{ long t = getTimeout(); while(true){ if(in_kex){
execChannel.connect(session.getTimeout());
sftpChannel.connect(session.getTimeout());
sftpChannel.connect(session.getTimeout());
sftpChannel.connect(session.getTimeout());
execChannel.connect(session.getTimeout());