Listing 2. Deferring operations in twisted are like putting them on hold until a blocking operation gets back to us. d = self.outgoing_proxy_cache.getOutgoing( host, int(port)) d.addCallback(self.outgoingConnectionMade, uri) d.addErrback(self.outgoingProxyError, uri)