shadows/httpclient/src/main/java/org/robolectric/shadows/httpclient/DefaultRequestDirector.java
private void abortConnection() {
    ManagedClientConnection mcc = managedConn;
    if (mcc != null) {
      // we got here as the result of an exception
      // no response will be returned, release the connection
      managedConn = null;
      try {
        mcc.abortConnection();
      } catch (IOException ex) {
        if (this.log.isDebugEnabled()) {
          this.log.debug(ex.getMessage(), ex);
        }
      }
      // ensure the connection manager properly releases this connection
      try {
        mcc.releaseConnection();
      } catch(IOException ignored) {
        this.log.debug("Error releasing connection", ignored);
      }
    }
  }
private void abortConnection() {
    ManagedClientConnection mcc = managedConn;
    if (mcc != null) {
      // we got here as the result of an exception
      // no response will be returned, release the connection
      managedConn = null;
      try {
        mcc.abortConnection();
      } catch (IOException ex) {
        if (this.log.isDebugEnabled()) {
          this.log.debug(ex.getMessage(), ex);
        }
      }
      // ensure the connection manager properly releases this connection
      try {
        mcc.releaseConnection();
      } catch(IOException ignored) {
        this.log.debug("Error releasing connection", ignored);
      }
    }
  }
private void abortConnection ( ) { ManagedClientConnection mcc = managedConn ; if ( mcc != null ) { // we got here as the result of an exception // no response will be returned, release the connection managedConn = null ; try { mcc . abortConnection ( ) ; } catch ( IOException ex ) { if ( this . log . isDebugEnabled ( ) ) { this . log . debug ( ex . getMessage ( ) , ex ) ; } } // ensure the connection manager properly releases this connection try { mcc . releaseConnection ( ) ; } catch ( IOException ignored ) { this . log . debug ( "Error releasing connection" , ignored ) ; } } }
Shuts down the connection.
This method is called from a {@code catch} block in
{@link #execute execute} during exception handling.
Shuts down the connection . This method is called from a {