comparison src/ch/ethz/ssh2/transport/TransportManager.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 126af684034e
comparison
equal deleted inserted replaced
332:5c17707d94b0 333:d835e842d158
434 final byte[] buffer = new byte[MAX_PACKET_SIZE]; 434 final byte[] buffer = new byte[MAX_PACKET_SIZE];
435 final int length = tc.receiveMessage(buffer, 0, buffer.length); 435 final int length = tc.receiveMessage(buffer, 0, buffer.length);
436 final byte[] packet = new byte[length]; 436 final byte[] packet = new byte[length];
437 System.arraycopy(buffer, 0, packet, 0, length); 437 System.arraycopy(buffer, 0, packet, 0, length);
438 final int type = packet[0] & 0xff; 438 final int type = packet[0] & 0xff;
439 log.debug(String.format("transport manager receive loop type %d", type));
439 440
440 switch (type) { 441 switch (type) {
441 case Packets.SSH_MSG_IGNORE: 442 case Packets.SSH_MSG_IGNORE:
442 break; 443 break;
443 444