From 7f1e97a9bee9f998e3010e1e3ac4f46c559b377f Mon Sep 17 00:00:00 2001 From: David Dykstal Date: Thu, 27 Apr 2006 12:53:45 +0000 Subject: [PATCH] Fxing bugzilla 138315. Handshake failure message was printing to stderr. --- .../dstore/core/client/ClientConnection.java | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/rse/plugins/org.eclipse.dstore.core/src/org/eclipse/dstore/core/client/ClientConnection.java b/rse/plugins/org.eclipse.dstore.core/src/org/eclipse/dstore/core/client/ClientConnection.java index 4217c82a7d6..7ae15b32449 100644 --- a/rse/plugins/org.eclipse.dstore.core/src/org/eclipse/dstore/core/client/ClientConnection.java +++ b/rse/plugins/org.eclipse.dstore.core/src/org/eclipse/dstore/core/client/ClientConnection.java @@ -729,18 +729,15 @@ public class ClientConnection implements IDataStoreConstants _launchSocket = lSocket; lSocket.startHandshake(); - SSLSession session = lSocket.getSession(); if (session == null) { - System.out.println("handshake failed"); lSocket.close(); } } catch (SSLHandshakeException e) { - result = new ConnectionStatus(false, e, true, mgr.getUntrustedCerts()); return result; } @@ -750,15 +747,15 @@ public class ClientConnection implements IDataStoreConstants { _launchSocket.close(); } - e.printStackTrace(); - result = new ConnectionStatus(false, e); - + + result = new ConnectionStatus(false, e); return result; } } catch (Exception e) { - e.printStackTrace(); + result = new ConnectionStatus(false, e); + return result; } } else @@ -778,8 +775,6 @@ public class ClientConnection implements IDataStoreConstants } catch (IOException ioe) { - System.out.println(ioe); - ioe.printStackTrace(); result = new ConnectionStatus(false, ioe); }