1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-17 13:15:44 +02:00

Fxing bugzilla 138315. Handshake failure message was printing to stderr.

This commit is contained in:
David Dykstal 2006-04-27 12:53:45 +00:00
parent 19a6904752
commit 7f1e97a9be

View file

@ -729,18 +729,15 @@ public class ClientConnection implements IDataStoreConstants
_launchSocket = lSocket; _launchSocket = lSocket;
lSocket.startHandshake(); lSocket.startHandshake();
SSLSession session = lSocket.getSession(); SSLSession session = lSocket.getSession();
if (session == null) if (session == null)
{ {
System.out.println("handshake failed");
lSocket.close(); lSocket.close();
} }
} }
catch (SSLHandshakeException e) catch (SSLHandshakeException e)
{ {
result = new ConnectionStatus(false, e, true, mgr.getUntrustedCerts()); result = new ConnectionStatus(false, e, true, mgr.getUntrustedCerts());
return result; return result;
} }
@ -750,15 +747,15 @@ public class ClientConnection implements IDataStoreConstants
{ {
_launchSocket.close(); _launchSocket.close();
} }
e.printStackTrace();
result = new ConnectionStatus(false, e); result = new ConnectionStatus(false, e);
return result; return result;
} }
} }
catch (Exception e) catch (Exception e)
{ {
e.printStackTrace(); result = new ConnectionStatus(false, e);
return result;
} }
} }
else else
@ -778,8 +775,6 @@ public class ClientConnection implements IDataStoreConstants
} }
catch (IOException ioe) catch (IOException ioe)
{ {
System.out.println(ioe);
ioe.printStackTrace();
result = new ConnectionStatus(false, ioe); result = new ConnectionStatus(false, ioe);
} }