comparison src/ch/ethz/ssh2/transport/ClientKexManager.java @ 333:d835e842d158 ganymed

still hangs during connection
author Carl Byington <carl@five-ten-sg.com>
date Thu, 31 Jul 2014 13:45:59 -0700
parents 6740870cf268
children 098bb036e0a7
comparison
equal deleted inserted replaced
332:5c17707d94b0 333:d835e842d158
86 } 86 }
87 } 87 }
88 88
89 public synchronized void handleMessage(byte[] msg) throws IOException { 89 public synchronized void handleMessage(byte[] msg) throws IOException {
90 PacketKexInit kip; 90 PacketKexInit kip;
91 91
92 if (msg == null) { 92 if (msg == null) {
93 synchronized (accessLock) { 93 synchronized (accessLock) {
94 connectionClosed = true; 94 connectionClosed = true;
95 accessLock.notifyAll(); 95 accessLock.notifyAll();
96 return; 96 return;
97 } 97 }
98 } 98 }
99
100 log.debug(String.format("client kex manager, packet type %d", msg[0]));
99 101
100 if ((kxs == null) && (msg[0] != Packets.SSH_MSG_KEXINIT)) { 102 if ((kxs == null) && (msg[0] != Packets.SSH_MSG_KEXINIT)) {
101 throw new PacketTypeException(msg[0]); 103 throw new PacketTypeException(msg[0]);
102 } 104 }
103 105