mySocket = SocketFactory.createPlainSocket(myProxyAuth.getProxyHost(), myProxyAuth.getProxyPort());
mySocket = SVNSocketFactory.createPlainSocket(myProxyAuth.getProxyHost(), myProxyAuth.getProxyPort());
    public void connect() throws SVNException {        if (mySocket == null || isStale()) {            close();            String host = mySVNRepositoryLocation.getHost();            int port = mySVNRepositoryLocation.getPort();            myProxyAuth = myAuthManager != null ? myAuthManager.getProxyManager(mySVNRepositoryLocation.toString()) : null;            ISVNSSLManager sslManager = myAuthManager != null && isSecured() ?                     myAuthManager.getSSLManager(mySVNRepositoryLocation.toString()) : null;            if (myProxyAuth != null && myProxyAuth.getProxyHost() != null) {                mySocket = SocketFactory.createPlainSocket(myProxyAuth.getProxyHost(), myProxyAuth.getProxyPort());                if (isSecured()) {                    Map props = new HashMap();                    if (myProxyAuth.getProxyUserName() != null && myProxyAuth.getProxyPassword() != null) {                        props.put("Proxy-Authorization", getProxyAuthString(myProxyAuth.getProxyUserName(), myProxyAuth.getProxyPassword()));                    }                    DAVStatus status = null;                    try {                        myOutputStream = DebugLog.getLoggingOutputStream("http", mySocket.getOutputStream());                        sendHeader("CONNECT", mySVNRepositoryLocation.getHost() + ":" + mySVNRepositoryLocation.getPort(), props, null);                        myOutputStream.flush();                        status = readHeader(new HashMap());                        if (status != null && status.getResponseCode() == 200) {                            myInputStream = null;                            myOutputStream = null;                            mySocket = SocketFactory.createSSLSocket(sslManager, host, port, mySocket);                            return;                        }                    } catch (IOException e) {                        SVNErrorManager.error("svn: Cannot establish connection to proxy server: '" + e.getMessage() + "'");                    }                    SVNErrorManager.error("svn: Cannot establish http tunnel for proxied secure connection: " + (status != null ? status.getErrorText() + "" : " for unknow reason"));                }            } else {                mySocket = isSecured() ? SocketFactory.createSSLSocket(sslManager, host, port) : SocketFactory.createPlainSocket(host, port);            }        }    }