felipeo Jun 26th, 2011 217 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- def poemReceived(self, poem):
- print "Survived the timeout."
- except AlreadyCalled: # imported from twisted.internet.error
- # It was the killer that caused this call.
- print "Death by timeout"
- def makeConnection(self, tcp):
- print "Connection made"
- from twisted.internet import reactor
- self.killer = reactor.callLater(self.factory.timeout,
RAW Paste Data