endPendingConnection method

void endPendingConnection(
  1. RequestState state
)

Ends what beginPendingConnection announced, and reconsiders closing the request. A path that gave up without registering anything is the last thing that can notice: nothing else runs when a connection simply never opened.

Implementation

void endPendingConnection(RequestState state) {
  state.pendingConnections--;
  _checkNetworkClose(state);
}