DebugLog.log("SOCKET: attempting to reconnect... ("+ attempts + ")");
    public static Socket createSSLSocket(ISVNSSLManager manager, String host, int port, Socket socket) throws SVNException {        int attempts = 3;        manager = manager == null ? DEFAULT_SSL_MANAGER : manager;        while (true) {            try {                return manager.getSSLContext().getSocketFactory().createSocket(socket, host, port, true);            } catch (ConnectException timeOut) {                if (timeOut.getMessage().indexOf("time") >= 0) {                    attempts--;                    DebugLog.log("SOCKET: attempting to reconnect... ("+ attempts + ")");                    if (attempts <= 0) {                        SVNErrorManager.error("svn: Connection timeout");                    }                    continue;                }                SVNErrorManager.error("svn: Connection failed: '" + timeOut.getMessage() + "'");            } catch (IOException e) {                SVNErrorManager.error("svn: " + e.getMessage());            }        }    }