mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 10:46:02 +02:00
ssl fix for linux client (from Michael Berger)
This commit is contained in:
parent
a50cc50ad8
commit
f40f66a014
2 changed files with 4 additions and 5 deletions
|
@ -554,6 +554,8 @@ public class ClientConnection implements IDataStoreConstants
|
|||
if (result == null && msg != null)
|
||||
{
|
||||
result = new ConnectionStatus(false, msg);
|
||||
_isConnected = false;
|
||||
_theSocket.close();
|
||||
}
|
||||
}
|
||||
catch (java.net.ConnectException e)
|
||||
|
@ -572,7 +574,6 @@ public class ClientConnection implements IDataStoreConstants
|
|||
_isConnected = false;
|
||||
result = new ConnectionStatus(_isConnected, ioe);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
@ -633,11 +633,9 @@ public class DStoreConnectorService extends AbstractConnectorService implements
|
|||
monitor.subTask(cmsg.getLevelOneText());
|
||||
}
|
||||
// connect to launched server
|
||||
setSSLProperties(false);
|
||||
connectStatus = clientConnection.connect(launchStatus.getTicket(), timeout);
|
||||
if (!connectStatus.isConnected() && connectStatus.getMessage().startsWith(ClientConnection.CANNOT_CONNECT))
|
||||
{
|
||||
setSSLProperties(usedSSL);
|
||||
launchStatus = launchServer(clientConnection, info, daemonPort, monitor);
|
||||
if (!launchStatus.isConnected())
|
||||
{
|
||||
|
@ -646,7 +644,7 @@ public class DStoreConnectorService extends AbstractConnectorService implements
|
|||
}
|
||||
else
|
||||
{
|
||||
if (setSSLProperties(true))
|
||||
if (setSSLProperties(!usedSSL))
|
||||
{
|
||||
connectStatus = clientConnection.connect(launchStatus.getTicket(), timeout);
|
||||
}
|
||||
|
@ -926,7 +924,7 @@ public class DStoreConnectorService extends AbstractConnectorService implements
|
|||
}
|
||||
if (launchMsg != null && launchMsg.equals(IDataStoreConstants.ATTEMPT_RECONNECT))
|
||||
{
|
||||
connect(monitor);
|
||||
internalConnect(monitor);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue