mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-02 22:55:26 +02:00
Fxing bugzilla 138315. Handshake failure message was printing to stderr.
This commit is contained in:
parent
19a6904752
commit
7f1e97a9be
1 changed files with 4 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue