Code example for InterruptedIOException

0
        RouteTracker localTracker = tracker; // capture volatile
 
        // If this tracker was reset while connecting, 
        // fail early. 
        if (localTracker == null) {
            throw new InterruptedIOException("Request aborted");
        } 
 
        if (proxy == null) {
            localTracker.connectTarget(this.connection.isSecure());
        } else { 
            localTracker.connectProxy(proxy, this.connection.isSecure());
        } 
 
    } 
 
    /** 
     * Tracks tunnelling of the connection to the target. 
     * The tunnel has to be established outside by sending a CONNECT 
     * request to the (last) proxy. 
     *