this.socket.setSoTimeout(Integer.MAX_VALUE); this.socket.connect((SocketAddress) new InetSocketAddress( InetAddress.getByName(getHost()), getPort()), 20000);
this.socket.setSoTimeout(getTimeout()); this.socket.connect((SocketAddress) new InetSocketAddress( InetAddress.getByName(getHost()), getPort()), getTimeout());
    private void connectToProxy() throws IOException {        this.socket = new Socket();        this.socket.setSoTimeout(Integer.MAX_VALUE);        this.socket.connect((SocketAddress) new InetSocketAddress( InetAddress.getByName(getHost()), getPort()), 20000);    } 