comparison src/ch/ethz/ssh2/transport/ClientServerHello.java @ 335:e25e377d29d3 ganymed

still hangs during connection
author Carl Byington <carl@five-ten-sg.com>
date Thu, 31 Jul 2014 14:35:37 -0700
parents 097cfe8770dd
children 63b23b7c840d
comparison
equal deleted inserted replaced
334:097cfe8770dd 335:e25e377d29d3
43 bo.flush(); 43 bo.flush();
44 // Expect SSH-protoversion-softwareversion SP comments CR LF 44 // Expect SSH-protoversion-softwareversion SP comments CR LF
45 InputStreamReader isr = new InputStreamReader(bi); 45 InputStreamReader isr = new InputStreamReader(bi);
46 LineNumberReader lnr = new LineNumberReader(isr); 46 LineNumberReader lnr = new LineNumberReader(isr);
47 String remoteIdentifier = lnr.readLine(); 47 String remoteIdentifier = lnr.readLine();
48 if (!bi.ready() && lnr.ready()) { 48 if ((bi.available()==0) && lnr.ready()) {
49 int a= 1; // break 49 int a= 1; // break
50 } 50 }
51 51
52 if (null == remoteIdentifier) { 52 if (null == remoteIdentifier) {
53 throw new IOException("Premature connection close"); 53 throw new IOException("Premature connection close");