'Call the errback on all outstanding requests awaiting responses.
@param reason: the Failure instance to pass to those errbacks.'

def failAllOutgoing(self, reason):

    self._failAllReason = reason
    OR = self._outstandingRequests.items()
    self._outstandingRequests = None
    for (key, value) in OR:
        value.errback(reason)
